获取Facebook群订阅源
我在使用php curl获取Facebook群组订阅源时遇到以下错误获取Facebook群订阅源,facebook,facebook-graph-api,Facebook,Facebook Graph Api,我在使用php curl获取Facebook群组订阅源时遇到以下错误 stdClass Object ( [error] => stdClass Object ( [message] => Invalid OAuth access token signature. [type] => OAuthException [code] => 190 ) ) 这
stdClass Object
(
[error] => stdClass Object
(
[message] => Invalid OAuth access token signature.
[type] => OAuthException
[code] => 190
)
)
这就是我到目前为止所做的
- 在上创建了一个应用程序
- 使用curl:https://graph.facebook.com/oauth/access\u-token?client\u-id=id&client\u-secret=secret&grant\u-type=client\u-credentials获取访问令牌
- 使用curl获取组提要:https://graph.facebook.com/440783062666183/feed?access_token=$accessToken
好的,这是我写了上面的文章后发现的 如果我使用Facebook Graph API Explorer获取访问令牌并选择用户组 然后硬编码到我的php脚本我可以得到饲料 如何使用php curl获取此访问令牌 这将返回我需要的组提要https://graph.facebook.com/440783062666183/feed?access_token=$accessToken——注意,$accessToken是用graph API Explorer生成的访问令牌硬编码的 如何获取正确的访问令牌