FQL查询错误104
上周我需要运行 FQL 查询来返回公共页面的最后一篇墙贴,这是非常基本的
SELECT actor_id, message FROM stream WHERE source_id = 122338662806 limit 1
,它运行良好,返回了 xml 模式,然后我从那里获取消息。这一切都是在网站后端完成的,而不是 Facebook 应用程序。
不过周日晚上,它停止返回任何内容并开始给我:
<error_code>104</error_code>
<error_msg>Requires valid signature</error_msg>
经过一番研究,这意味着它需要一个 access_token。由于这不是 Facebook 应用程序,既然它是公共页面,有没有办法解决这个问题?
先感谢您!
last week I needed to run a FQL query to return the last wall post of a public page, which is very basic
SELECT actor_id, message FROM stream WHERE source_id = 122338662806 limit 1
it worked fine, returned an xml schema and I then went to get the message from there. This is all done in the backend of a website, and not a facebook application.
Sunday night though, it stopped returning anything and started giving me:
<error_code>104</error_code>
<error_msg>Requires valid signature</error_msg>
which after some research, means it wants an access_token. Since this is not a facebook app, is there a way around this, since it's a public page?
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道它对公共页面的处理方式,但添加 access_token 对我有用
SELECT actor_id, message FROM stream WHERE source_id = 122338662806 limit 1&access_token=YOUR_ACCESS_TOKEN
这就是 facebook 所说的,
获取/fql?q=SELECT+uid2+FROM+friend+WHERE+uid1=me()&access_token=YOUR_ACCESS_TOKEN
I don't know the way its done for public pages but adding an access_token worked for me
SELECT actor_id, message FROM stream WHERE source_id = 122338662806 limit 1&access_token=YOUR_ACCESS_TOKEN
this is what facebook says,
GET /fql?q=SELECT+uid2+FROM+friend+WHERE+uid1=me()&access_token=YOUR_ACCESS_TOKEN