After disabling offline_access and removing the app from app settings I no longer get an extended access token

♀尐吖头ヾ 提交于 2019-12-03 20:25:29

You're supposed to take that 2 hour token and convert it into a 60 day one if your app needs it.

Looks like this was a bug that Facebook has since fixed.

It seems if you set your app type in the Advanced Setting of your app at developers.facebook.com to "Native/Desktop" instead of Web, the extendAccessToken method currently returns a token that expires in around 1 day instead of just 2hrs.

I'm hoping there's a way to get a longer expiry than that, but no luck so far.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!