signalpoint / facebook

The Facebook module for DrupalGap.
1 stars 0 forks source link

Logout Error #5

Open tennist opened 7 years ago

tennist commented 7 years ago

When I click the logout button in the app everything appears to work as its supposed to. The app is no longer able to access the pages for logged in users and the login and create account buttons are all that appear in the user menu. However, when I close the app and reopen it , the last user is still logged in. This only occurs with users that have their account connected to Facebook. If I log in with a non facebook account everything works just fine.

tennist commented 7 years ago

Update: I was able to fix this problem. It is due to an error in the openFB.js file. Line 207 of the current code file needs to be change from:

tokenStore.removeItem('fbtoken');

to:

tokenStore.removeItem('fbAccessToken');

signalpoint commented 7 years ago

@tennist Thank you for the follow up, I'll watch for that error/resolution next time I use this module. Otherwise, it sounds like this is an issue with openFB, thank you for clarifying.