简体   繁体   English

Facebook自动发布停止工作

[英]Facebook auto post stopped working

Our company has been using Facebook's facebook.php and base_facebook.php files to auto-post entries to client's Facebook pages. 我们公司一直在使用Facebook的facebook.phpbase_facebook.php文件将条目自动发布到客户的Facebook页面。 Recently they have all stopped working and the only error we can get is an unexpected error has occured. 最近,他们都停止了工作,我们唯一能得到的错误是发生了意外错误。

We cannot find a solution to this and we were wondering if anyone in the community has ran into this and can guide us in the right direction? 我们无法找到解决方案,我们想知道社区中是否有人遇到过这种情况并可以指导我们朝正确的方向发展?

That is because the token may have been expired. 那是因为令牌可能已经过期。 As the token is valid is just 2 hours after login. 由于令牌有效,仅在登录后2小时。

You need to exchange your old token with a new one which has 60 day validity. 您需要将旧令牌换成具有60天有效期的新令牌。 The link exchange will be like this.. 链接交换将是这样。

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

The return response will be a 60-day validity token (something like below) 返回响应将是60天有效期令牌(如下所示)

CAAAAjls08023jjFK9238024HDSD&expire=1..................

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

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