图表上 /posts 的 FQL 等效项是多少?

发布于 2024-12-08 17:26:53 字数 568 浏览 1 评论 0原文

我正在使用 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 技术交流群。

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

发布评论

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

评论(1

此岸叶落 2024-12-15 17:26:53

在发布问题几分钟后解决自己的问题的经典案例:

每个帖子都有一个 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.

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