开发者

How to call logout programmatically in facebook connect using iPhone?

开发者 https://www.devze.com 2023-03-07 19:15 出处:网络
I integrated FaceBook into my app which is working fine. If user opens the app next time andclick FB button, it wont ask user credential, get login automatically which means kee开发者_StackOverflow中文

I integrated FaceBook into my app which is working fine. If user opens the app next time and click FB button, it wont ask user credential, get login automatically which means kee开发者_StackOverflow中文版p retaining previous session. can you help me out, how should I logout from FB?

Regards

sri


See 'Logging out' here:

Assuming you log in like this:

Facebook* facebook = [[Facebook alloc] initWithAppId:appId];
[facebook authorize:permissions delegate:self];

You programmatically log out of Facebook with:

[facebook logout:self];

Note that the Facebook Connect API on iOS restoring the session between multiple launches is expected behavior, to avoid having users to sign in every time they use the app. You probably shouldn't log out the user from Facebook unless he explicitely wants to do that.

0

精彩评论

暂无评论...
验证码 换一张
取 消