How to extend access token validity since offline_

2019-01-01 08:04发布

Since the offline_access Permission is deprecated in Facebook's Authentication flow, we have problem geting the so called long lived access tokens without that permission.

In Facebook's document about the deprecation it says, that server side OAuth generated access tokens will be long lived, but they are not.

Am I missing something? Some setting in app settings? Some special code I need to use to extend expiration time of access tokens? As I understand the documentation, for server side authentication, the access token wich can be accessed by getAccessToken() method of PHP SDK when the user is logged in is long lived.

7条回答
公子世无双
2楼-- · 2019-01-01 08:55

Should you need an access token that NEVER expires for a PAGE, see my answer to a similar question here

From the developers page:

By using a long-lived user access token, querying the [User ID]/accounts endpoint will now provide page access tokens that do not expire for pages that a user manages.

查看更多
登录 后发表回答