Facebook iOS SDK: Log in to Facebook without asking permission for the app

I use the iOS SDK for iOS in my application and I have two similar questions:

  • Is there a way to find out if a user is currently logged in?
  • What I'm using now is to store the access token and expiration date on successful login and load them when the application starts. My question is: if the session is invalid, can I just give the user the ability to log in without asking permission each time? because right now, every time I want to log in, I get a message that I already gave permissions for my application. And I just want to log in without this part.

Any ideas?

+3
source share
1 answer
  • A call graph.facebook.com/mewill only return results if you have a valid authentication token. Without an access token, you are also not logged in.
  • Either the request offline_access, or simply not use the new login mechanism, but the login dialog. A dialog box will move your application and ask only once about privileges.

I am currently on an iPhone, so I can’t provide the code, but look for the FBDialog methods in the SDK.

+1
source

All Articles