Subscribe to Facebook Page photos using Pages API webhook - facebook

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

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

Related

Independently subscribe to Instagram and Facebook Page webhooks?

I know it is possible to subscribe to webhooks (for a Meta/Facebook App) for a specific Facebook page by using https://graph.facebook.com/{pageId}/subscribed_apps?subscribed_fields={fields}&access_token={token} but how does this work for Instagram pages? The only text I have found about it states the following:
Note: You cannot use the subscribed_fields parameter to configure or subscribe to Webhooks for Instagram. You must use your app dashboard to subscribe to Instagram Webhooks (from https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps/)
But it sounds a bit weird that a customer using our App cannot connect their Instagram page to our App and have webhooks delivered, without me as an App-owner doing manual stuff in the app dashboard.
Am I missing something?
No need to subscribe instagram page you should just go to instagram entry on the developer facebook account webhooks and then subscribe to a field that you want to receive notifications . your facebook page should be associated to your instagram business account .
N.B For the feed of instagram we have only comments field

Facebook: How to post on own page using graph api without login

I own a blog like website, and as part of promotions I have a corresponding facebook page. My website contents are dynamic & when it gets updated(through a bot), I want the facebook page also to be updated by an automated post/publish from the bot which shows up the updates to the page viewers.
I could create a facebook page, and my bot programme which updates the web content is also able to publish the content on my facebook page using graph apis. But the posts are not publicly visible(Visible to only me/admin).
I could learn that it could be because my app through which my bot program is publishing to my facebook page is not public.
App->Status & Review, Status (Tab)
(Do you want to make this app and all its live features available to the general public?).
To make the app public, there is a review process which checks the facebook login button used in the website but my posts are through a backend bot and not through user action. My website is like a blog without user authentication so can't think of adding a login there.
Is it possible without having user login on the page? Also, If I post using twitter apis and link/configure my twitter account to my facebook page, it works.I guess this is not a new problem and many brands have automated it already, so need to understand how.
Am I missing something?
Apologies: I have checked previous posts on the same topic, but couldn't find relevant answers for the current Facebook version & policies.
Without the Login Review process, your posts can not be visible to the public.
To get it working, just send your page management tool (with the login dialog) for the review. Once they review it and accepted, you may change the flow a bit eg: skip the login part and allow auto posting.

Does Facebook send notifications to my web page by the fb app?

I have searched on Google and Fb's documentation about this but didn't find anything.
I've already shared content of my page on Facebook with the Share button provided by FB's api and also made an app on Facebook.
Now I want to receive notifications in my page when someone comments the publication or likes it.
I know that I can consult the posts/comments/likes if the user gives me the permissions, but I don't want to do this every 5 minutes. I want that facebook notifies me like a push notification.
How can I do that if it's possible?
Thanks!
After the user shared something on his wall, there is no way for you to get notified about comments/likes on that wall post, unless you authorize the user with user_status or read_stream.
That being said, there is the Realtime API with the feed and statuses fields to subscribe to: https://developers.facebook.com/docs/graph-api/real-time-updates/
That´s probably the best option, although you must authorize the user with the correct permissions too.

Facebook Open Graph not showing on timeline

I'm using FB Open Graph in my application. It's not fully working. When I post a object it appears in the user's recent activity; however, it doesn't appear on their timeline. The metadata has no errors and I'm using the FBGraph gem but it also doesn't work when I do it using curl. Any advise to fix this?
Have you tried to use 'fb:explicitly_shared=true' in your URL. Refer: https://developers.facebook.com/docs/technical-guides/opengraph/explicit-sharing/
When you are in development mode, and your actions have not yet been approved by Facebook, the posted actions are only visible to you and to others with developer, admin or tester privileges for your FB app.
See: Facebook action submission
Also, open graph actions will no longer appear in users' news feeds or even the Ticker: http://developers.facebook.com/bugs/398546930211799/. So you shouldn't expect activities performed in your app to appear in users' timelines, unless these activities are tagged as 'explicitly shared', and even then there's no guarantee they'll show up.
Only direct, active shares are more or less guaranteed to show up in the Timeline.
Did you submit your action to get approved by facebook? If you did not do this, it will only work on your facebook account.
Also, are you sure you request the correct permission when the user authenticates, such as 'publish_stream'?

Implementing comments and notifications using Facebook plugins

I have a reviews website where I want to integrate Facebook social plugins. I initially thought of integrating facebook comment plugin where users can write their reviews for the products I have listed on my site. But that seemed like laying waste to my own review functionality.
Here's the flow I came up with:
create a facebook app for the website
Users write a review and post it to their facebook profile
When some action happens on the review like when it is voted up or replied to, the user who posted the review to facebook gets notified via the facebook notification center
I fetch the likes, replies on facebook post and display them on my website on the review
Is it possible to implement this workflow? I basically want to send notifications to user from inside my website not from the facebook application I created.
This is possible using apprequests. One requirement for this to work is your website and facebook canvas app must be registered under the same 'app' (ie have the same appID) and be under the same base domain.