Looking for guidance for Facebook Messenger's Webhook for page - facebook

I would like to know if there is a way (using any server side calls) to automate the subscribing to Messenger Webhook for specific Facebook Page. The user gives us access and we have the page's access token but we don't know how to make the subscription to page's messenger's events programmatically. All the manuals/docs show how to add the page using Facebook UI, but we need to do that using their API.
Could you guys point me to the right documentation if there is any.
THanks

Related

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.)

Need help adding business facebook feed to website

I want to add our company's facebook feed to our company website. I've looked at facebook's Graph API, but it seems limited to my personal account. I'm an admin for our company's business page, but I can't figure out how to get that accounts feed info, and I don't understand facebook's documentation. Anyone know of a simple, current, step-by-step tutorial?
You should be able to do this using a page access token and calling the /page/feed endpoint
https://developers.facebook.com/docs/graph-api/reference/v2.3/page/feed.
You can also use the Page Plugin or the Embed Posts plugin

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.

Can i programatically get the link backs from Facebook to my web-page?

I want to fetch the link backs from facebook to my web-site. Basically I want to fetch how many users have come to my web-site from the like/shared link posted over facebook for my web-site. Can i fetch these values using any of the FB API??
FB API doesn't have that ability. Here's what you do. On your website check the HTTP_REFERER attribute of each web request. When the referrer is Facebook, track it. Then you can know the counts. If you cannot do that, then you can use something like Google Analytics to do the tracking and reporting.

Post status update to Page Wall

I'am really new to all this Facebook development, and I wanted to integrate Facebook within my personal website.
I am now trying to test if what I want is possible.
I want to post a status from my server, via php/js to my Page in Facebook.
How can I do so?
B.W.
I saw that there is this FBJS function called "Facebook.streamPublish"
But I don't know how to integrate it.
Is there any possible way to do so?
Can you give me an example?
-Secondly, what is an access token?
You get an access_token after facebook authenticates you. You will need this access_token for all subsequent API calls. You can find the details here:
http://developers.facebook.com/docs/authentication/
You can use graph API for publishing on the wall and doing other allowed actions. Details of publishing api can be found here:
http://developers.facebook.com/docs/reference/api/post/
But do have a look on the facebook policy, because publishing automatically to a wall is considered violation.
http://developers.facebook.com/policy/