使用Pages API webhook订阅Facebook页面照片 [英] Subscribe to Facebook Page photos using Pages API webhook
问题描述
TL / DR;
如果我通过Photos Facebook上传新照片到页面,通知我的webhook。如果我在页面时间轴上执行相同操作,那么它不会。
With page webhook in place, if I upload new photo to the Page via Photos Facebook notifies my webhook. If I do the same on page timeline — it doesn't.
详细信息:
我希望我的应用程序从一些公开的Facebook页面接收新的帖子。
I want my application to receive new posts from some public Facebook page. Posts may have a photo attached or may not.
我做了什么:
在我的Facebook应用程序设置中,我已经在Webhooks部分创建了一个页面订阅。我选择了饲料字段。
我已经使用/ subscribed_apps端点订阅了我的应用程序到目标页面。
In my Facebook app settings I've created a Page Subscription in Webhooks section. I've chosen 'feed' field. I've subscribed my app to the target page using "/subscribed_apps" endpoint. Page access token with "manage_pages" permission was used for that.
问题:
Facebook正在调用我的webhook,我的应用程序从页面接收文本帖子,所以基本上是订阅。但是,如果我附加一个图像的帖子,Facebook不会触发webhook。我没有看到任何其他明智的选择页面订阅,我已经尝试了几乎所有的其他领域,没有运气。
Facebook is calling my webhook and my app receives text posts from the page, so basically subscription works. But if I attach an image to the post, Facebook doesn't trigger the webhook. I don't see any other sensible field to choose for Page Subscription and I've tried almost all of the other fields as well with no luck.
我被卡住。看起来我需要在某处微调一些权限,但是不要看别的尝试。是否有可能订阅新的页面照片?
I'm stuck. It looks like I need to fine-tune some permission somewhere, but just don't see which else to try. Is it ever possible to subscribe for new page photos?
UPD:
如果我通过照片Facebook新增照片通知我的webhook。如果我通过页面时间轴做同样的事情 - 它不会。看起来像一个错误
If I upoad new photo via Photos Facebook notifies my webhook. If I do the same via page timeline — it doesn't. Looks like a bug
UPD2:
由Facebook团队修复。现在按预期工作
Fixed by Facebook team. Now works as expected
推荐答案
嗯,这是Facebook实时API中的确认错误: https://developers.facebook.com/bugs/1740620369486641/
Well, this is confirmed bug in Facebook Realtime API: https://developers.facebook.com/bugs/1740620369486641/
UPD:
由Facebook团队修复。现在订阅按预期工作
UPD: Fixed by the Facebook team. Now subscription works as expected
这篇关于使用Pages API webhook订阅Facebook页面照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!