1024programmer Java AndroidFacebook4.0 logout programmatically-AndroidFacebook4.0LogoutProgrammatically

AndroidFacebook4.0 logout programmatically-AndroidFacebook4.0LogoutProgrammatically

In my app, I allow users to login to and logout from Facebook programmatically.

In my application, I allow users to log in and log out from Facebook programmatically.

For login, I call:

When logging in, I call:

ArrayList permissiOns= new ArrayList();
 permissions.add("manage_pages");
 permissions.add("publish_actions");
 LoginManager.getInstance().logInWithPublishPermissions(App.activity, permissions);
 

And for logout, I call:

For cancellation, I call:

FacebookSdk.sdkInitialize(getApplicationContext());
 LoginManager.getInstance().logOut();
 

When I call the logInWithPublishPermissions() method above, the official Facebook app opens prompting the user to login, and after the user logs in, they become logged in to both my app as well as the official Facebook app.

When I call the logInWithPublishPermissions() method above, the official Facebook app opens, prompting the user to log in, and after the user logs in, they log into my app program as well as the official Facebook app.

However, when I call the logout() method above, the user is not logged out from the official Facebook app. Is there a way to make this happen, i.e. signing out from my app will force signing out from the official app ? A type of ‘single sign-off,’ if you will?

However, when I call the logout() method above, the user is not logged out from the official Facebook app. Is there a way to make this happen, that exiting from my app will force exiting from the official app? A kind of “single sign-up”, if you will?

1 solution

#1


No. It is a common problem even with oauth type “signup via facebook or gmail”, where even if you logout from the third party app, you dont get out of fb or google. There is no mechanism which can make your app issue logout command to facebook app.

No. This is a common problem, even with the oauth type “Register via facebook or gmail”, you won’t log out of FB or Google even if you log out from the 3rd party app. There is no mechanism for your application to issue logout commands to the facebook application.

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/756933

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索