Subscribe to Facebook Page photos using Pages API webhook

寵の児 提交于 2019-12-12 02:35:44

问题


TL/DR;

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.

Details:

I want my application to receive new posts from some public Facebook page. Posts may have a photo attached or may not.

What have I done:

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.

Problem:

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:

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:

Fixed by Facebook team. Now works as expected


回答1:


Well, this is confirmed bug in Facebook Realtime API: https://developers.facebook.com/bugs/1740620369486641/

UPD: Fixed by the Facebook team. Now subscription works as expected



来源:https://stackoverflow.com/questions/39135845/subscribe-to-facebook-page-photos-using-pages-api-webhook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!