Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Callback URL in Facebook webhook page subscription?

I'm trying to stream the real time public feeds using Facebook Web-hook API. Here I'm trying to set up a page subscription in Web-hook console. There is a field called Callback URL. What is this URL about?

I have also tried going through the documentation for Setting up callback URL. but I Couldn't figure out.

https://developers.facebook.com/docs/graph-api/webhooks#setup

Cant the callback URL be SSL localhost? Whenever I try to give a localhost URL i get a error message "Unable to verify provided URL".

like image 469
Karthick Radhakrishnan Avatar asked Jan 13 '16 08:01

Karthick Radhakrishnan


People also ask

What is webhook callback URL?

Webhooks enable you to be notified when certain events occur in Smartling. For example, you can configure a webhook to notify you when the translations are ready for download. The notification is via by Smartling via an HTTP request, known as a “callback”, sent to the URL you specify in the webhook configuration.

What is Facebook callback URL?

The "Callback URL" is the URL that will be contacted once the user has accepted or rejected the OAuth request. This is set as a parameter of your OAuth request. So you set the URL in your own program, not somewhere in Facebook.

What is the difference between a webhook and a callback?

A callback is a function that is passed as a parameter to another function. A webhook is a hook in the web. Typically used to make two distinct systems communicate and typically to go away from polling towards a publisher-subscriber model.

How do I subscribe to webhook on Facebook?

Subscribing to Webhook Topics To add a new webhook subscription on a given topic, provide a callback URL and a verify token, then select the subscription fields you need for the functionality your app will provide. You can only subscribe one URL per webhook topic, but you may use the same URL for multiple topics.


1 Answers

You can forward the request to localhost with the following:

  1. Download and install ngrok from https://ngrok.com/download
  2. ./ngrok http 8445
  3. Subscribe your page to the Webhooks using verify_token and https://<your_ngrok_io>/webhook as callback URL.
  4. Talk to your bot on Messenger!
like image 200
Phil Hudson Avatar answered Sep 20 '22 20:09

Phil Hudson