How can I renew a Users Facebook Access Token?

2019-08-28 18:36发布

If a user loggs into my app with his facebook account I get an access token which is valid for 2 months. But what happens if the two months exceed and the user loggs into my app again? Do I get a new 2 month access token automatically?

1条回答
Explosion°爆炸
2楼-- · 2019-08-28 19:13

Your user will have to go through the normal authentication process that they did when they first installed the application.

During this process, Facebook will detect that the application has already been installed and refresh the access token.

So, to directly answer your question: yes, you will receive a new access token.

查看更多
登录 后发表回答