Instagram Insight Webhook - facebook

Currently, I have a webhook subscribed to Instagram story_insights on my Facebook app. The Facebook app has a bunch of Facebook Business pages tied to Instagram Business accounts. Following the steps here I have successfully set the webhook to work with test data from Facbeook; however, the webhook is never fired when a story ends/is deleted.
I am unsure how else to approach this. Has anyone encountered this issue before?

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

Social media notification integration to our website

Following are my requirements
created space in website that user can come and sign up with FB or Instagram to integrate their account
Through Graph API for FB and API for Instagram, I can able to view and post the images to FB (post is not possible to instagram)
My requirement would be any activities (like and share ) happened at the FB or Instagram page should receives as notification to my website
I came to know there is no direct APIs available to achieving notifications but I have seen them in "Social Stream" app.
any help would be appreciated on how could achieve this functionality
TIA
You can get likes, comments and posts using API. You can poll them at regular interval, compare new data and create your own notifications.
(You have to get your app approved by Instagram to get API permissions, which may be possible for your usecase, if you do get approval, then its possible to achieve what you are trying to do.)

My api.ai bot is NOT communicating with other users on facebook

i made a demo bot (Free version) on Api.ai and integrated it with facebook but the problem is that it doesnt't respond to anyone else except me?
Maybe it is because of the fact that i created the facebook page from my account and generated page access token...
But How can i make my bot to communicate with other users too??
The bot on facebook will only respond to people you specifically add as admins or testers of your bot on developers.facebook.com.
If you want to make it available to anyone, you need to request facebook's approval for pages_messaging on developers.facebook.com and it will take a couple of days.

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

Facebook Page Messenger not working with Webhook API

I followed the steps to setup the Facebook Messenger platform. I have successfully setup the webhook, I receive messages on my webhook.
For webhooks to work, I obviously had to subscribe my page, see the screenshot.
Now the strange problem is, if I keep my page subscribed to a webhook, my facebook page messenger doesn't show any thing.
As soon as I unsubscribe my page for webhook, page messenger nicely loads.
What can I do ?
I just checked mine and it is not working, which it was yesterday, so I'm confident this is a bug.
I'd suggest opening a bug report, and in the meantime, you can download the pages for messenger app Facebook makes to access the messages while waiting for a fix.