图表上 /posts 的 FQL 等效项是多少?
我正在使用 FQL 在我的网站上生成备用提要,该提要链接到我的(公开可用的)Facebook 业务页面。
我只想选择 Facebook 页面(作者)发布的帖子,而不选择其他帖子。所以我不需要整个提要,只是相当于按墙顶部的“...页面标题...”而不是“每个人(最新)”。
如果我进行直接图形调用,它将: https://graph.facebook.com/{$page_id}/posts?{$authToken}。
目前我有:
$queries = array(
"stream"=>"SELECT post_id, created_time, message, action_links, attachment
FROM stream
WHERE source_id = 143019819074093
ORDER BY created_time DESC LIMIT 30",
这可能与filter_key有关,但我不知道这是如何工作的。
谢谢!
I'm using FQL to generate an alternate feed on my website that links to my (publicaly available) Facebook business page.
I want to select only posts made by the page (author) on Facebook, and no others. So I don't want the entire feed, just the equivalent of pressing the "...Page Title..." at the top of the Wall instead of "Everyone (Most recent)".
If I was making a direct graph call it would go:
https://graph.facebook.com/{$page_id}/posts?{$authToken}.
currently I have:
$queries = array(
"stream"=>"SELECT post_id, created_time, message, action_links, attachment
FROM stream
WHERE source_id = 143019819074093
ORDER BY created_time DESC LIMIT 30",
It's probably something to do with filter_key, but I have no idea how this works.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在发布问题几分钟后解决自己的问题的经典案例:
每个帖子都有一个 source_id (发布它的页面)和一个 actor_id (发布它的人)。所以,只需要添加一个 WHERE actor_id = "XXXXXXXXXX" (页面 id 号);
天才。
Classic case of solving your own problem minutes after posting the question:
Each post has both a source_id (the page it was posted on) AND an actor_id (the person who posted it). So, simply needed to add a WHERE actor_id = "XXXXXXXXXX" (page id number);
Genius.