Facebook webhook feed - not receiving shares - facebook

I have subscribed my facebook app to receive webhook updates on feed and it works great with posts, likes and comments. However, I'm not receiving post shares at my endpoint even though facebook docs states that the feed subscription also includes share (Reference: https://developers.facebook.com/docs/graph-api/webhooks/reference/page --> feed section).
Anybody has an idea?

Related

How to create a Facebook Event using Facebook Graph API in 2022?

i'm trying to create a Facebook Event from Postman.
My project consists of an Event Management and Sharing System.
I was able to post a Facebook Posts of type text, link, photo, multi-photos, and video from Postman to my Facebook Page.
I'm confused about what i should do to create events through Facebook API.
At the page Event - Graph API Reference i read that "Access to Events on Users and Pages is only available to Facebook Marketing Partners".
At the page API Official Events | Facebook Developers i read that "we are temporarily pausing new integrations with partners, but you are welcome to complete the form below. Please note that responses to this form are monitored but you may not receive a direct response."
Should my company make a request to become a Facebook Marketing Partners or there's another way of creating events of facebook through Facebook API?
EDIT: i forgot to say that through Postman i'm able to retrieve an event performing a GET to https://graph.facebook.com/v13.0/980993592785922/?access_token={my_long_lived_user_access_token_with_proper_permissions}

"singular links API is deprecated for versions v2.4 and higher" for Facebook API?

I set up a Facebook Webhook to notify my app of changes to my business page. Then I did the same with the Messenger platform. Then when I started posting as a user of my page, and sending messages, I found out that the user IDs are different across different pages and apps.
So, facebook provides two endpoints: ids_for_apps, and ids_for_pages. There are quite a few "but"s to use these endpoints, but at least in development mode, and for IDs sent by the Messenger webhook, it works. I get the notification and I'm able too look up the IDs and match to an app id (because maybe the user commented on a photo before contacting me via Messenger)
Now if I try to do the same with a sender_id that I got from the Facebook Webhooks, "feed" subscription, I get the "singular links API is deprecated for versions v2.4 and higher"
The url I try to access, even with Graph API Explorer tool is GET /2.9/{sender_id}/ids_for_apps
What's going on here?

Facebook - Get unpublished and hidden posts with Real-Time API

I'm trying to subscribe to the promotable_posts endpoint of the Facebook page to get updates for unpublished and hidden posts ("dark posts"). According to Facebook it should be possible to subscribe to that endpoint: https://developers.facebook.com/docs/pages/realtime#data
But that endpoint is not listed on https://developers.facebook.com/apps/[APP_ID]/webhooks/ and I can't add the subscription of the endpoint via the API either. It's working for endpoints like feed.
How can I subscribe to that endpoint? And how can I get hidden posts? Normally I would use https://graph.facebook.com/[PAGE_ID]/promotable_posts?include_hidden=true&access_token=... to get those posts when I'm polling, but I can't tell Facebook to include hidden posts when I subscribe to an endpoint.
The Facebook documentation is wrong: You don't have to subscripe to "promotable" posts to get unpublished posts and you don't have to do anything else to get "hidden" posts.
is_hidden
If this post is marked as hidden (Applies to Pages only)
From Facebook documentation here.
This flag tells you if the posts are hidden also known as unpublished or "dark posts". Basically it's a post that is shown in public feed but not in the page feed.
However, when you make a call to FB Graph API you still get all the posts, just add this flag in your request in order to filter them later.
The best approach would be pull the data from the api, and manage it in your side, since there is no way to filter them on your calls.

Subscribe to Facebook Page photos using Pages API webhook

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

Retrieving Facebook check-ins to a particular Facebook page using Facebook webhooks subscription

I have used Facebook webhooks to retrieve check-ins for a particular Facebook page that I have created. I have implemented an endpoint to receive the webhooks notifications. I was able to get the messages and posts by test users through the webhooks. However I cannot get any check-ins done for the page. Is there any special permissions or way to get the page check-ins?