I apologize ahead of time if this is clearly documented somewhere on the FB developer site, but I cannot find it (so please post a link if necessary).
I have embedded the FB login button on the website using GAE + Python. Here is the HTML:
<fb:login-button></fb:login-button> <div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js"></script> <script> FB.init({appId: 'ad16a806fc10bef5d30881322e73be68', status: true, cookie: true, xfbml: true}); FB.Event.subscribe('auth.sessionChange', function(response) { if (response.session) { </script>
Currently, the behavior - if I click the "Login" button, I am asked to allow the application access to FB. Then I select "OK." But then the login button still shows "login", not "logout". How to implement this? Server or client side?
javascript python facebook facebook-graph-api
Will curran
source share