Olegas
Olegas

Reputation: 10517

App review is required to get Facebook Webhook working. How to develop?

I'm developing an app which must interact with Facebook API Graph and also use webhooks to get live updates. Now I'm facing a problem I can't receive a live webhook updates until my app is reviewed and is not in development mode.

I've found a thread on a Fecebook for developers site describing the same problem and it got official answer - it is not possible. Use Test button in app dashboard to test your webhook implementation they said.

The problem is the Test button sends only one predefined data packet for each of possible subscription with predefined set of fields with fake values, but documentation defines much more fields and little to none information about which fields are sent in different situations (i.e. post added, comment deleted, comment edited).

I'm wondering how other devs solving this? May be there are some community driven reference for a different webhook interaction cases or else.

Upvotes: 4

Views: 885

Answers (2)

Olegas
Olegas

Reputation: 10517

For now I can't find any information on detailed webhook format except official documentation on available fields (but not supported payload shapes). Our current workflow looks this way:

  1. create test app
  2. implement webhook handler using only documentation
  3. prepare test payload and check it is working
  4. create a screencast of the app functionality using test payloads
  5. go through the review process
  6. when app is approved
  7. make it live and check your implementation against real webhook payloads

Upvotes: 1

ricks
ricks

Reputation: 3324

You need to create a test app for your existing Facebook app

Once you do this, just accept the permissions for your app and set the webhooks on your own Facebook account.

Since you are an admin of the test app, you will be able to set webhooks on yourself without having to get your app approved.

Upvotes: 0

Related Questions