how can i add facebook webhook to any public page - facebook

I was able to add a web-hook to the page created by me using below link.
https://developers.facebook.com/docs/graph-api/webhooks
But i want to add web-hook to a few public pages to my app.
I tried asking one public page owner to add my app, so that i can see that page in my app and add webhook.
This did not worked.
Do i need to request for pageaccesstoken from page owners and subscribe?
Can anyone help me with this?

Related

How to simply get Facebook public page post feed

It seems to me I am delving unnecessarily deep into GraphAPI and app creation to do this simple thing, but I can't figure out any other way.
What I want for my personal website(nothing connected to Facebook) is to insert a feed from a public Facebook page, much like the FB page plugin, but I need only about three latest posts and need to style them completely differently.
I tried to do it through FB Page Feed guide with GraphAPI and also PHP SDK, but both say:
This endpoint requires the 'pages_read_user_content' permission or the 'Page Public Content Access' feature.
...and to get Page Public Content Access, I need successful review of my app.
That doesn't seem to make much sense to me. I don't want to develop an app, I already have created a website and just want to insert public page feed in there. What am I missing?

How do I get leads from multiple facebook pages using a facebook app and a webhook?

I'm trying to get leads from facebook pages using a facebook app and a webhook. I'm using Zapier right now(which is working) but I'm trying to create a custom solution to replace Zapier. My webhook is working for one page, but I have about 10 facebook pages and each page has their own, separate lead forms. I've used the Lead Ads Testing Tool to check to see if my facebook app is listed and their is only one page that lists my facebook app - the one that is working. I can't figure out how to add my facebook application to the other pages. What I've tried: I went into Business manager and made sure that my facebook user account is listed under each page and verified that I'm an admin on all those pages. I also tried to add or assign a CRM to the pages under Integrations->Lead Access in Business Manager but my facebook application named TestApp is not accessible via the search(see 2nd image), in fact, no CRMs are searchable except for Zapier. Questions: How can I subscribe each page to my facebook app so leads from all my pages will be sent to my webhook? Or do I need to create a facebook app and webhook for each page?

Facebook Graph API Page Public Content Access procedure

I am planning to use Facebook feeds from some public pages which don't belong to me. For example WHO Facebook page. I am planning to use these posts from multiple pages and show on a website. My question is, whether this is even possible with all kind of crazy security policies in place? Since Facebook is allowing to embed public posts, I am assuming we can achieve this somehow. If I have to create page/app myself and get it reviewed by Facebook, anyone got any link on how to get this done?

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

how to make users to manage their facebook pages in my website for adding some custom landing tabs?

how to make users to manage their facebook pages in my website for adding some custom landing tabs which i created in my webpage.when are user clicks on that custom tab, it should generate a dialog box or facebook API , with the list of pages which the current user has created and he should be able to select either of one page and that page should redirect him to that selected page in facebook with that custom tab.. Please developers help out me with some coding.
for example:follow this site hyly...
i was stucked up with this problem from last 1 month..hope you will make me to overcome this problem...
To retrieve the current pages a user administer you need the manage_pages permission and then to query: /me/accounts
Then you can install an app into a page by issuing a HTTP POST to PAGE_ID/tabs (example)
No one will build (code) an app for you. This community is about solving technical issues, i.e. you have done all the work and stuck in some points which you need help with.