Login with Facebook not working
September 28, 2013 7:21 AM   Subscribe

I'm using the example code from here http://developers.facebook.com/docs/facebook-login/getting-started-web/ I've put in my app id and channelUrl but its not working.

When I click the button the popup comes up for a second (or the auth this app thing if its the first time or I de-authed the app) but then nothing else happens. auth.authResponseChange just does not fire.

If I add FB.login(function(response) {console.log(response)}); to the onclick of a link it works perfectly. If I click the facebook button again after I've used the link then the event fires but it comes back with status=unknown and the example code fires the FB.login() again, this time it works but in order to get to that state I've had to send 3 separate login requests. (one manually from the link, 1 from the facebook button and 1 from calling in response to an 'unknown' status)
posted by missmagenta to Computers & Internet (2 answers total) 1 user marked this as a favorite
 
Response by poster: Apparently this is only happening in firefox. in IE and chrome the event triggers as soon as I visit the page without even having to use the button if I'm logged into facebook already.
posted by missmagenta at 7:29 AM on September 28, 2013


This is the kind of thing StackOverflow is much better at than AskMe.
posted by phearlez at 9:26 AM on September 28, 2013


« Older chocolate in the UK   |   Help me zine. Newer »
This thread is closed to new comments.