Sunday, August 29, 2010

Facebook Connect: xd_receiver Doesn't Close on Cancel

I'm currently working on integrating a rails app with Facebook Connect.
One of the annoying things I found out during the integration was the lack of action if a user decides to deny access to the site: the facebook login popup simply links to a blank /xd_receiver.htm with various query string parameters. Mine looked like this:



Notice the presence of fbCancelLogin in the query string? We can use that to our advantage.
Add the following script tag at the top of xd_receiver.htm:

No comments:

Post a Comment