FOSFacebookBundle icon indicating copy to clipboard operation
FOSFacebookBundle copied to clipboard

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

Open babour opened this issue 14 years ago • 1 comments

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.

babour avatar Dec 13 '11 18:12 babour

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/

diegoholiveira avatar Jan 24 '12 20:01 diegoholiveira