FriendsOfSymfony / FOSFacebookBundle

NOT MAINTAINED - see https://github.com/hwi/HWIOAuthBundle
321 stars 140 forks source link

Problem login after session expired or logout (withtout using facebook button) #88

Open babour opened 12 years ago

babour commented 12 years ago

Hi,

I got a problem when my session expired or I logout without using the facebook button but just the redirection path to: {{ path('_security_logout') }}

What happen when I want to login after one of this cases is: I click on login, and get login "automatically" without the windows asking me my facebook credential. But the only thing that I can see happening is that the facebook button display change to logout, but I am not actually login. If i refresh the page, it changes back to login.

What I need to do to login, is to click on the facebook logout button and then click back once it changes to login, and then I get asked my facebook credential and I get logged in (for real).

My questions are, Is there anyway to correct or avoid this problem? Is there anyway to properly logout of facebook without using the facebook logout button?

Thanks.

diegoholiveira commented 12 years ago

On your logout link you should trigger the Logout function on the Javascript SDK.

Take a look at documentation: http://developers.facebook.com/docs/reference/javascript/FB.logout/