In our iOS app, we have a UIWebView that shows web content on our domain that has a Facebook comment module. The comment module requires that the user is signed in with facebook. When user clicks on the sign in button, they are taken through the sign in flow, but are never redirect back to our page. They end up on an FB owned page that just tells the user "You are now signed in".
Repro steps:
- Create a UIWebView in an iOS app, and host a Facebook comment module on a page hosted on some domain you own (e.g. http://foo.com/test.htm).
- Click on the Sign In button on the comment module and notice you are redirect to FB sign in.
- Sign in with valid FB credentials and observe what happens.
After you sign in (step 3) I would expect that after a successful authentication, you are redirected back to the original page (e.g http://foo.com/test.htm) so you can continue your interaction. However, this isn't happening.
Instead, you are on an FB owned page that just says something like "You are now signed in" and you are trapped there. No redirect happens.
Is this indeed a bug or is there something else I should be doing to ensure the redirect happens?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…