FQL查询错误104

发布于 2024-11-14 14:39:15 字数 467 浏览 1 评论 0原文

上周我需要运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落叶缤纷 2024-11-21 14:39:15

我不知道它对公共页面的处理方式,但添加 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文