Created By
Ollie Harridge
10/03/2012 1:58pm

Subscribers (30)

BugsLogin does not post back to page in Mobile Safari for iPhone with JS SDK

  • Status: Fixed
  • Priority: Low
  • Updated: December 18, 2012 at 2:05pm
Latest response from Facebook
Øyvind Sean Kinsey
This should now be resolved. Thanks for your patience.
Status changed to Fixed
Shireesh Asthana
Thanks for the report. We will follow up.
Status changed to Triaged · Priority changed to Low
I'm using the JS SDK and I have this code on my page
FB.Event.subscribe('auth.statusChange', function(response) {
setTimeout(goLogIn, 500);
});
function goLogIn(){
window.location = "/fb/login_check";
}
This works fine on all desktop browsers and iPad, but on Mobile Safari on iPhone/iPod the login page does not post back to the page and therefore callback is not called. When I click the Facebook login button on my page, I go to the Facebook login page, enter my details and the Facebook page closes but the focus does not return back to my login page. I get this error in the debug console "Unable to post message to https://m.facebook.com/. Recipient has origin https://www.facebook.com/"
11 people can reproduce this issue by following these steps
Repro