开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜