Take the 2-minute tour ×  Relatively simple question here but I
can't seem to figure it out. I have an application where the
user submits a get request and is then given a page with
results. On this page, the user can login to facebook to
interact with the results (rate, comment etc). However, how do I
connect the user to facebook and keep him on the same page. (I
cant just refresh with the get query in the url because the page
returns something different every time.)  In other words, given
this code from the facebooker2 github:  <%= fb_connect_async_js
%> <% if current_facebook_user %> <% else    # you must
explicitly request permissions for facebook user fields.    # to
access the user's facebook email and birthday <% end %>  How can
I not redirect the user to another page (url is blank), and have
the first part of the if statement automatically execute once
the user signs into facebook.  share|improve this question  Your
Answer    Browse other questions tagged or ask your own
question.