简体   繁体   中英

fbconnect iphone : i want to login every time. how to do that?

i am using fbconnect in my iphone application to post on my wall. i want to login every time. how to do that ?

currently if i login to facebook in my application once. it does not asks me for login next time... how to do that ?

For me it works showing the FBDialog everytime ...

self.session = [FBSession sessionForApplication:kAPIKey secret:kApplicationSecret delegate:self];
FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:session] autorelease];
    [dialog show];

Or you can just logout everytime the user leaves the app:

[session logout];

在会话对象上调用简历。

[session resume];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM