Comments (7)
I think you need to deauth the application
Through the native js api it would be
FB.api("/me/permissions", "delete", function(response){});
from openfb.
For that you could use the revokePermissions method which encapsulates the native api call @hutchic mentioned.
Back to topic: I got the same issue with that. I guess its because when you run it as an hybrid app on your phone there might be a problem with the redirect-url as the app does run within the filesystem and not under some domain.
@ccoenraets mentioned this as a comment above the logout method.
* IMPORTANT: For the Facebook logout to work,
the logoutRedirectURL must be on the domain
specified in "Site URL" in your Facebook App Settings
Maybe related with #35 and #10
Actually the following seemed to solve the problem. But I did not fully test everything by now.
https://github.com/vielhuber/OpenFB/commit/6cff3852e4a04b377eb4f654265a2ba1431bd316
from openfb.
the ,clearcache=yes fixed the logout problem for me. I only added it to the logout function and i removed the settimeout function because it's not needed for me..
from openfb.
I beleive the problem is a BUG, the tokenStore
key is incorrect, it should be tokenStore.removeItem('fbAccessToken');
// openfb.js
var logoutWindow,
token = tokenStore.fbAccessToken;
/* Remove token. Will fail silently if does not exist */
tokenStore.removeItem('fbtoken'); // change to tokenStore.removeItem('fbAccessToken');
from openfb.
I beleive the problem is a BUG, the tokenStore
key is incorrect, it should be tokenStore.removeItem('fbAccessToken');
// openfb.js
var logoutWindow,
token = tokenStore.fbAccessToken;
/* Remove token. Will fail silently if does not exist */
tokenStore.removeItem('fbtoken'); // change to tokenStore.removeItem('fbAccessToken');
from openfb.
I can confirm that changing
tokenStore.removeItem('fbtoken');
to
tokenStore.removeItem('fbAccessToken');
fixes the logout issue.
from openfb.
Yes, after changing it to -> tokenStore.removeItem('fbAccessToken') the issue has been fixed. Thanks
from openfb.
Related Issues (20)
- window.open works in Emulator, doesn't work on iPhone
- Not able to get User UUID on login to facebook
- redirect_uri in not correct in cordova HOT 4
- minified and non-minified versions are not the same HOT 1
- when click on login button in facebook
- Lost token after login HOT 1
- The redirect_uri is not supported
- Logout Issues
- The redirect_uri URL is not supported! HOT 4
- Please I need more detailed documentation for how to integrate with phonegap project, no framewroks used
- Error: Permission denied to access property "openFB
- How to make openFB use native app for login instead of in-app-browser (ionic) HOT 4
- Fetching email address
- Login infinity loop on iOs
- is possible to login automatically using Facebook App Native? HOT 1
- window size
- Cordova (cocoonjs) working on Android but not iOS
- Can't able to fetch friends email id
- Facebook Policy Warning for App
- PWA compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openfb.