gurbieta
gurbieta

Reputation: 896

Can't get long lived tokens working properly

I removed the offline_access permissions, revoked the offline_access permissions, and set my app as native. Now instead of getting the 2 hs token, I get a 24 hs token, but is supposed to give a 60 day token, someone knows what's happening here?

Already tried:

https://graph.facebook.com/oauth/access_token?client_id=$APP_ID&client_secret=$APP_SECRET&grant_type=fb_exchange_token&fb_exchange_token=$TOKEN

And still getting 24 hs token

Upvotes: 0

Views: 199

Answers (2)

gurbieta
gurbieta

Reputation: 896

It seems the applications created before the new policy will use long lived tokens until the definitive rollout, any new application created after they announced the new token policy will expire in the expected time

Upvotes: 0

Jonathan
Jonathan

Reputation: 3034

Facebook 60 day access token and Deprecated Offline_Access

According to this post, the (deprecate) offline access setting has to be on.

Upvotes: 1

Related Questions