How to use facebook account log in ios app

The Facebook SDK uses a session state machine to control the session lifecycle.

A typical lifecycle from login through logout is illustrated below. In the example, we look for a cached token at app launch to provide an initial logged in experience if a token is available. If the token is not present, we show a login UI, where the user can touch a button to initiate the login process. After that, an authenticated user can be asked for additional permissions during app use, which kicks off a new permissions request flow that will trigger a UI to ask the user for the permissions. Finally, the authenticated user can log out of the app by clicking on a logout button.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s