FACEBOOK GRAPH API : Error while trying to access user information

1.1k Views Asked by At

I am trying to make a GET request to facebook graph API. When i introduce locale,timezone and gender to the below URL, I receive an error -

https://graph.facebook.com/v2.6/USER_ID?fields=first_name,last_name,profile_pic,locale,timezone,gender&access_token=PAGE_ACCESS_TOKEN

error   
message "(#100) Insufficient permission to access user profile."
type    "OAuthException"
code    100
error_subcode   2018247
fbtrace_id  "EcbnYPgb/sm"

Please help as I am unable to understand why that would be the case.

1

There are 1 best solutions below

0
On

It's your inclusion of locale,timezone,gender which is causing this error.

According to Facebook's recent changes, for apps created after July 26, 2018 to access additional user profile fields app developers must apply for each field in the Messenger Platform tab of the app console.