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];
精彩评论