Facebook API page feed didn't send information to my webhook?
Asked Answered
C

4

9

I'm admin of my test app, and my test page.

Now I'm doing a function get page's feed realtime by webhook, just only on development mode.

When I click test button on App's Dashboard, It has been sent to my webhook. But when I comment or like ... the post, facebook doesn't send even though I subscribed feed webhook. With Messages, it has been sent successfully, but Feed doesn't.

I ask facebook support, so they said that:

"Applications will only be able to receive test webhooks sent from the app dashboard while they are in development. No production data, including that of app admins, developers, and testers, will be delivered unless the app is live. In order to receive feed webhooks, your app needs to be live and has to go through app review for necessary permissions."

I understand that I can not get data from facebook even though it is under development mode. So how can I get data returned by facebook to develop, test... apps in development mode.

Thanks so much.

Cecilla answered 25/6, 2018 at 8:11 Comment(1)
Did you got the resolution to your problem lately ? I have been struggling through this long back.. getting my App Reviewed is becoming pain as i cannot develop and send for review with limited permissions. @KevinMalacostracan
V
6

It is not possible to run this service without an app review, since it is not possible to add the 'mange_pages' permission to a (test-)user within a development app. At the same time it is not possible to turn a testapp into live-mode. As the same is true vice versa the only solution is the app review to get information from a specific (test-)page.

  • For live testing i suggest to create a testuser and subscribe for information about the "user" to test your webhook.

  • You can check with GET graph.facebook.com/app-id/subscriptions, if your app is successfully subscribed to "page information". Graph API Documentation

  • As you already mentioned you can also send "page information" test calls to your endpoint.

UPDATE 18th Nov 2018

enter image description here

If you go to Webhook -> pages in your App Dashboard on https://developers.facebook.com you are able to notice, that Webhooks in dev mode do not work.

Vardhamana answered 27/8, 2018 at 12:17 Comment(4)
I don't quite follow the setup to receive page webhook and be able to post comments. The case scenario would be : - User post a comment on the page (need to receive webhook from page) - Page reply to the post as a comment (need publish_pages permissions)Mitman
Any solution to this? I have subscribed app to Test page with webhook page>feed subscribed. it's in development mode I can get test call from the dashboard but still can't receive updates from Test user and Test page.Dowsabel
@RemyBurney did you get the Facebook reviews from webhooks?Bentwood
@ManeeshRao, no I did not. I put this project in the backlog hopping you would have the solution ;-)Mitman
M
3

I've submitted a Bug report to Facebook for this issue, as there is no proper solution. You can check it at : https://developers.facebook.com/support/bugs/1570460936387604/

I also don't get the fact that you can't test webhooks in dev mode, and you can't do the app review because you can't develop your app and show them for review. Just a chicken and egg issue.

Mitman answered 20/11, 2018 at 23:53 Comment(1)
Yes, that's a chicken and egg issue. We can't develop app. But now facebook don't have suggestion to resolve this problemCecilla
M
0

I've been trying to test getting my Graph API working for the /feed/ endpoint.

  1. You must set your app to 'live'
  2. if you have a business manager, the app must be registered in the BM
  3. the user must have a role in the app assigned
  4. and lastly, where I was stuck - the Page must have the app subscribed to the page. You can run this via the Graph API explorer to subscribe the app to the page.

This finally allowed me to post on my page, and trigger my server API call for the action. Hope this helps someone - spent a couple hours trying to figure this out.

webhook for pages

Mohsen answered 11/3 at 19:41 Comment(0)
N
0

You need to submit your app for review and set your app live to get feed webhook.

I found that very annoying when I needed to set my app in development mode to test other functionalities without any limitation before submitting others privileges during app review (Assuming you are registered as a developer of your app). Especially when you need video evidence to submit app review, but you can't develop feed-related functions since you must get the app live (it affects other functions in devs when go live - not free privileges anymore).

However, I found a workaround solution. You can create another app that no need to submit any privileges, but set to live so it still can receive feed webhook. Point that app webhook to the dev server that you normally do with you dev environment and you can receive feed webhook while still keep the dev app in development mode for others functionalities.

But you also have to subscribe dev environment accounts to the temporary app for 'feed' as well.

Newcomb answered 18/9 at 8:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.