我想在我的网站上显示最后的facebook帖子.我有一个脚本,但它需要访问令牌才能工作.
我按照这篇文章中提到的步骤:
现在我有一个访问令牌,有效期为60天但是当我打开https://graph.facebook.com/me/accounts时,我收到此错误:
{
"error": {
"message": "An active access token must be used to query information about the current user.",
"type": "OAuthException",
"code": 2500
}
}
Run Code Online (Sandbox Code Playgroud)
因为我的访问令牌有效期是2个月,它应该工作.