开发者

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

开发者 https://www.devze.com 2023-01-12 16:16 出处:网络
i am using fbconnect in my iphone application to post on my wall. i want to login every time. how to d开发者_StackOverflow社区o that ?

i am using fbconnect in my iphone application to post on my wall. i want to login every time. how to d开发者_StackOverflow社区o 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];


Call resume on your session object.

[session resume];
0

精彩评论

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

关注公众号