脸书小问题
如果有人熟悉 fql 查询,为什么我在下一个查询中收到此错误:
这是页面:https://www.facebook.com/Inna?sk=wall 我想做的就是从 Inna 的墙上检索最后的帖子。
非常感谢;
If anyone is familiar with the fql query, why am I getting this error for the next query:
This is the page:https://www.facebook.com/Inna?sk=wall
All I want to do is to retrive the last posts from Inna's wall.
Thank you very much;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
即使数据是公开的,您也需要在 FQL 请求中提供有效的 access_token。您可以在此处进行测试。您不需要授予任何访问该源的权限,但需要提供令牌。
您将需要一个“任何有效”类型的
access_token
,如 所定义在这里。简而言之,这意味着您可以使用任何未过期的access_token
。一种易于获取的access_token
是应用访问令牌,您可以通过访问以下网址获取:https://graph.facebook.com/oauth/access_tokenclient_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials
您会发现 YOUR_APP_ID 和 YOUR_APP_SECRET< /strong> 在您的 创建的应用程序页面(或者,如果您没有,也可以在那里创建一个)。
当您向 oauth 提供应用程序 ID 和密钥时,您将收到一个
access_token
,您可以将其用于请求,直到令牌过期。You need to provide a valid access_token with the FQL request even though the data is public. You can test it here. You won't need to have any permissions granted to access the feed, but you will need to provide the token.
You will need an
access_token
of type "Any Valid" as defined here. In short, it means that you can use anyaccess_token
that hasn't expired. One easy to obtainaccess_token
is an app access token which you can obtain by going to:https://graph.facebook.com/oauth/access_tokenclient_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials
You will find YOUR_APP_ID and YOUR_APP_SECRET under your created apps page (or you can create one there if you don't have one).
When you provide the app id and secret to the oauth, you will receive an
access_token
which you can use for the request until the token expires.