FQL 不返回具有自定义位置的帖子

发布于 2024-10-05 15:37:40 字数 1109 浏览 0 评论 0原文


我编写了一个小型 FQL 脚本,用于返回我的粉丝专页的最新墙贴。该脚本运行良好。直到今天。

情况:
我发布了带有自定义设置的墙贴:该帖子仅对德国粉丝可见。

问题:
我的 fql 查询忽略这个“特殊”帖子。

我的小 PHP 程序看起来像这样

$query = "    SELECT
                        post_id, message, created_time, attachment,action_links, privacy, type
                    FROM 
                        stream 
                    WHERE 
                        source_id = ".$page_id."
                        AND actor_id = ".$page_id."
                    ORDER BY created_time DESC";

$param  =   array(
               'method'     => 'fql.query',
            'query'     => $query,
              'callback'    => ''
          );
$result = $this->facebook->opengraph->api($param);

要点:
如果我像这样调用特殊帖子,Facebook 会返回状态消息: https://graph.facebook.com/367501354973 (来源:http://developers.facebook.com/docs/ref … api/status)

感谢您的帮助

i wrote a small FQL script that returns the latest wallposts of my fanpage. The script works fine. Until today.

The situation:
I published a wallpost with custom settings: The post is only visible to German fans.

The Problem:
My fql query ignores this "special" post.

My little PHP program looks like this

$query = "    SELECT
                        post_id, message, created_time, attachment,action_links, privacy, type
                    FROM 
                        stream 
                    WHERE 
                        source_id = ".$page_id."
                        AND actor_id = ".$page_id."
                    ORDER BY created_time DESC";

$param  =   array(
               'method'     => 'fql.query',
            'query'     => $query,
              'callback'    => ''
          );
$result = $this->facebook->opengraph->api($param);

The nugget:
Facebook returns the status message if i call the special post like this:
https://graph.facebook.com/367501354973
(Source: http://developers.facebook.com/docs/ref … api/status)

Thanks for helping

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

娇妻 2024-10-12 15:37:40

一般来说,以人口统计为目标或受限制的内容只会提供给符合人口统计集的用户的用户访问令牌 - 检查您尝试访问帖子的用户实际上是否属于您所针对的人口统计发帖于.

In general, content which is demographically targeted or restricted will only be made available to a user access token for a user who meets the demographic set - check that the user you're trying to access the posts as is actually in the demographic you targeted the post at.

⊕婉儿 2024-10-12 15:37:40

我使用 grpah api 遇到了类似的问题:
这不会返回特殊帖子
https://graph.facebook.com/MYPAGE/posts?access_token=SOME_TOKEN

如果我通过 FB-Docs 调用该图(他们提供特殊的访问令牌,我会收到特殊帖子

https://graph.facebook.com/MYPAGE/posts?access_token=22223423470867|2.qnqX1HsEaIXVr0lVHCRxiw__.3600.12913 423423400-10043534534530485|4wqk8YYWXQ8bjfQj8KETz2JyWQk

奇怪...< /强>

I got a similar problem using the grpah api:
This does NOT return the special post
https://graph.facebook.com/MYPAGE/posts?access_token=SOME_TOKEN

If I call the graph via FB-Docs (they offer a special access token, i get the special post

https://graph.facebook.com/MYPAGE/posts?access_token=22223423470867|2.qnqX1HsEaIXVr0lVHCRxiw__.3600.12913423423400-10043534534530485|4wqk8YYWXQ8bjfQj8KETz2JyWQk

Stange...

苍景流年 2024-10-12 15:37:40

如果您的 FQL 在没有 access_token 的情况下进行调用,则 API 将不会返回对其施加任何类型限制的任何帖子。在您的示例中,地理限制为德国。

它通过文档工作的原因是我们附加了一个 access_token

If your FQL is calling without an access_token, then the API won't return any posts that any kind of restrictions placed on them. In your example, geo gated to Germany.

The reason it's working via the Docs is that we're appending an access_token.

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