Facebook Open Graph 操作发布到动态消息,但聚合/时间线不再更新

发布于 2024-12-10 13:42:47 字数 1245 浏览 0 评论 0原文

美国东部时间下午 1 点左右,我正在对利用开放图谱的方法进行最终测试,此时时间线聚合和单个故事停止更新。

我可以继续向我的开发人员帐户添加开放图操作,调试工具仍然有效并且没有显示任何问题,我使用的是 PHP SDK(1),它不会引发任何异常,并且我使用相同的curl(2) 命令过去曾多次工作过。

具有讽刺意味的是,这种功能停止是在最终测试期间发生的。我以为可能是延迟问题什么的,所以今天等了一段时间。运气不好!

此外,添加的 POST 请求具有“微调”性质。它们只是充当每个对象的一次性请求,以确保 Facebook 可以抓取或已经抓取了该对象。现在聚合不再起作用了吗?我怀疑他们有关系,至少我希望没有!

有什么想法吗?

(1) 仍然有效:获取对象 id 的请求(注意:我使用名为“Services_Facebook”的命名空间,通过它来访问最新的 PHP SDK):

try {
    // tested and confirmed that this will work the same as a direct POST curl_exec as per FB doc: http://bit.ly/oENw60
    $opengraph_object_array = Services_Facebook::api('/', 'POST', array(
        'id' => $canonical_url,
        'scrape' => 'true'
    ));
} catch (FacebookApiException $e) {
    $opengraph_object_array = NULL;
}
if ($opengraph_object_array && isset($opengraph_object_array['id'])) {
    $opengraph_object_id = $opengraph_object_array['id'];
} else {
    return NULL;
}

(2) 仍然有效:我一直在使用的curl 命令的格式是保持不变:

curl -F 'access_token=XXXXXXXXXXXXXXXXXXXXXXXX' \
    -F 'scrape=true' \
    -F 'app=<url of the OG object>' \
    'https://graph.facebook.com/me/<app namespace>:<action>'

At around 1pm EST, I was performing final tests on methods utilizing the Open Graph, when the timeline aggregation and individual stories stopped updating.

I could continue to add open graph actions to my developer account, the debug tool still worked and showed no issues, I am using the PHP SDK(1) which is not throwing any exceptions, and I am using the same curl(2) commands which have working repeatedly in the past.

Ironically, this stoppage in functionality has occurred during final tests. I thought it may be a lag issue or something, so I waited a while today. No luck!

In addition, that POST request addition was of a 'fine-tuning' nature. They were simply to act as a one-time request per object to ensure Facebook could scrape or had scraped the object. Now aggregation doesn't work anymore? I doubt they're related, at least I hope not!

Any ideas?

(1) still works: the request to get object id (note: I use a namespace called 'Services_Facebook' through which to access the latest PHP SDK):

try {
    // tested and confirmed that this will work the same as a direct POST curl_exec as per FB doc: http://bit.ly/oENw60
    $opengraph_object_array = Services_Facebook::api('/', 'POST', array(
        'id' => $canonical_url,
        'scrape' => 'true'
    ));
} catch (FacebookApiException $e) {
    $opengraph_object_array = NULL;
}
if ($opengraph_object_array && isset($opengraph_object_array['id'])) {
    $opengraph_object_id = $opengraph_object_array['id'];
} else {
    return NULL;
}

(2) still works: the format of the curl command I have been using has remained unchanged:

curl -F 'access_token=XXXXXXXXXXXXXXXXXXXXXXXX' \
    -F 'scrape=true' \
    -F 'app=<url of the OG object>' \
    'https://graph.facebook.com/me/<app namespace>:<action>'

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文