facebook-sdk icon indicating copy to clipboard operation
facebook-sdk copied to clipboard

Logout no longer working in Flask example

Open jenwebb opened this issue 10 years ago • 4 comments

Since the update of FB sdk 2.7, /logout no longer logs out. There is a console error message "Uncaught TypeError: Cannot read property 'accessToken' of null all.js:88"

jenwebb avatar Aug 14 '16 05:08 jenwebb

Can you let us know if changing js.src in base.html from //connect.facebook.net/en_US/all.js to //connect.facebook.net/en_US/sdk.js helps?

http://stackoverflow.com/q/38462764/113527 suggests that all of our examples and documentation should be using sdk.js, but it would be useful to know if additional changes are needed.

martey avatar Aug 18 '16 22:08 martey

Thanks. I did try both and the same problem was happening. It won't completely logout and it won't redirect to the login screen. Manually clearing the cookie seems to fix it temporarily and then it happens again. I checked all the code

jenwebb avatar Aug 18 '16 23:08 jenwebb

Looking at the index.html template in the Flask example, I think it is possible that this is a bug in //connect.facebook.net/en_US/all.js.

@jndoy, can you confirm that this is still happening?

martey avatar Oct 14 '16 07:10 martey

I'm now using https://connect.facebook.net/en_US/sdk.js and it is now working fine. Thank you

jenwebb avatar Oct 15 '16 01:10 jenwebb