Reputation: 41
I want to get leads data from fb page forms. I am receiving Real time updates for leadgen webhook. Then I try to get leads details bu cURL like this
curl -X GET \ -d 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v9.0/{lead-id}/
But it gives me error like "A user access token is required to request this resource."
My app is in live mode & I have approved permissions for leads retrieve from Facebook.
Anybody knows what am i missing? Please help.
Upvotes: 1
Views: 811
Reputation: 91
The error message doesn't help much! In my case, I was using my own User (People) access token. I solved replacing it by a "System user" token, as described in this tutorial: https://developers.facebook.com/docs/marketplace/vehicles/retrieving-leads/#lead-apis-webhook
After creating the System User using the Business Configuration Panel, the cURL commands are:
Upvotes: 2