Ambili B Menon
Ambili B Menon

Reputation: 1249

New Facebook-access-token generated if it expires?

I am using the below API to list out my Facebook friends.

https://graph.facebook.com/me/friends?access_token=???

I wish to know what would happen when the access token expires.

1) If I have logged out of Facebook, and try to re-login my app via Facebook-connect, new access token is generated in my app.

2) But if I am already a logged-in Facebook user, and I am using iOS5.0 or above, and try to login my app via Facebook-connect, will it show expiration error? Or is new access token generated?

Upvotes: 0

Views: 239

Answers (1)

andyrandy
andyrandy

Reputation: 74004

Default access tokens expire after 2 hours, if you login again a new access token is generated.

Here is more: https://developers.facebook.com/blog/post/2011/05/13/how-to--handle-expired-access-tokens/

Upvotes: 1

Related Questions