I recently have a problem for my Facebook integration into my app.
I want the app to be able to ask for user to type in their username and password every time they want to connect to Facebook, I tried the example that comes in the Facebook SDK "switch User", but I still have some problems in integrating the function into my app.
Could anyone help me out? Thanks!
Use FBLoginView it will display a Login Button for Logging in with FBSDK and during logout functionality in your product, write this: [FBSession.activeSession closeAndClearTokenInformation];
and then dipslay the FBLoginView so that it will allow user to relogin into your product.
thanks for answering my question. I finally solved the problem by creating a button and add a IBAction to perform the log in/out, and when user is trying to login, I open the session by using the FBSessionBehaviorForcingWebView, which will allow different users to log in since it asks user for email & password every time.
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.