Page 1 of 1
Logout after login with Facebook
Posted: Mon Jul 14, 2014 10:02 pm
by Cody Blue
I have implemented an optional login and data retrieval service using Facebook API as suggested here (this is alongside regular user registration and login service implemented in the project) :
http://devcenter.appery.io/tutorials/...
I need a mechanism for the user to logout when they are done, after logging in with Facebook. Would you have suggestions for the implementation?
Thank you.
Logout after login with Facebook
Posted: Mon Jul 14, 2014 11:07 pm
by Alena Prykhodko
Hello,
We don't have ready instructions for this purpose, you can search online for Facebook logout API and implement it.
Logout after login with Facebook
Posted: Mon Sep 01, 2014 3:44 pm
by Darren Cassidy
Hi,
I have the same issue. Cody Blue, did you find a solution?
Alena, it seems like this is something that should be pretty basic, does your team have a solution now?
Darren
Logout after login with Facebook
Posted: Mon Sep 01, 2014 9:35 pm
by Cody Blue
Darren -- I clear the access_token (http://devcenter.appery.io/tutorials/...) and navigate to login page, when the user launches a logout request. Other storage variables / cache can be cleared as needed and desired, per the app functionality.
Hope this helps.
Logout after login with Facebook
Posted: Tue Sep 02, 2014 2:11 am
by Yurii Orishchuk
Hi Cody,
Thanks for your update.
Unfortunatly FB does not provide logout web service.
Your solution will work for your local goals.
In additional you can try to use this functional from FB utilities.
https://developers.facebook.com/docs/...
Regards.
Logout after login with Facebook
Posted: Tue Sep 02, 2014 5:17 pm
by Cody Blue
Thanks for the feedback on this thread, Yurii.
Regards.
Logout after login with Facebook
Posted: Tue Oct 20, 2015 5:49 pm
by Juan Pieterse
how do you clear the access token?
Logout after login with Facebook
Posted: Fri Oct 23, 2015 6:55 pm
by Serhii Kulibaba
Hello Juan,
Please look at this documentation page: https://devcenter.appery.io/documenta...
Logout after login with Facebook
Posted: Thu Dec 17, 2015 9:16 am
by Dongzhi Yang7528784
Hi @yurri orishchuk,
Sorry to bring this up again.
I was trying to implement facebook SDK, but it doesn't seem to work in the built-in browser of appery on mobile device. It works perfect on chrome browser.
Has anyone tried successfully?
I can see on weinre that the FB object is initialized with all its functions. But calling any of its function nothing happens. i tried with the logout and the status function.
Here's what i have done.
create a js file for the sdk, and copy the code between in the link below:
https://developers.facebook.com/docs/...
install the facebook plugin by appery.
build a test page and with a few buttons. login, logout, detect status.
set the login button using the standard appery facebook plugin.
set the logout and detect status button with facebook SDK.
run the app. click login button to login. after it succeeded, click the logout button and detect status button. nothing would happen for the later 2 button.
In the end, I had to search for another solutions for facebook logout,.
Here's the one I found.
it worked out great for me.
http://keganzo.blogspot.in/2012/03/wo...
But still, Facebook SDK is very powerful tool to interact with facebook. I plan to use it in the next step. Please help to check why it is not working with the built it appery browser.
Thanks
Don
Logout after login with Facebook
Posted: Fri Dec 25, 2015 3:32 pm
by Evgene Karachevtsev
Hello!
Sorre for the radio silence here. Please clear the token variables in localStorage and navigate to startscreen of your page