简体   繁体   English

如何使用facebook python sdk在facebook中扩展页面的access_token

[英]How to extend the access_token of a page in facebook using facebook python sdk

I am new in using facebook python sdk. 我是使用facebook python sdk的新手。 I have to post in a fan page as the page admin. 我必须在粉丝页面中作为页面管理员发布。 I can do this by using the page access_token and permissions. 我可以使用页面access_token和权限来完成此操作。 but problem is that the access_token expires after the user logout. 但问题是access_token在用户注销后到期。 I want an extended access_token for the page. 我想为页面扩展access_token Is there a way of doing it ? 有办法吗?
I have googled but could not found useful information. 我用Google搜索但无法找到有用的信息。

You need to have the user log in again in order to renew the access token. 您需要让用户再次登录才能续订访问令牌。

From the Facebook documentation: 来自Facebook文档:

If the access token becomes invalid, the solution is to have the person log in again, at which point you will be able to make API calls on their behalf once more. 如果访问令牌变为无效,解决方案是让该人再次登录,此时您将再次代表他们进行API调用。 The login flow your app uses for new people should determine which method you need to adopt. 您的应用用于新用户的登录流程应确定您需要采用哪种方法。

Facebook Access Tokens Documentation Facebook访问令牌文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM