user979331
user979331

Reputation: 11841

Facebook Graph API - Get Likes count by Facebook Page ID

I am using the Facebook Graph API and is it possible to get the like account for a Facebook Page by ID?

I have tried the following URL:

https://graph.facebook.com/{page_id}?fields=name&access_token={my_api_access_token}

And I get this error:

{
   "error": {
      "message": "(#100) Page Public Metadata Access requires either app secret proof or an app token",
      "type": "OAuthException",
      "code": 100,
      "fbtrace_id": "Ac1RaXdc4MG24eJ3UnYkIz7"
   }
}

My Facebook account is not associated with this Facebook Page. Is not possible to get the likes for a certain Facebook Page or do I have to be an admin to that Facebook Page?

Upvotes: 0

Views: 1327

Answers (1)

C3roe
C3roe

Reputation: 96151

You would need to submit your app for review of the mentioned feature first.

https://developers.facebook.com/docs/apps/features-reference#page-public-metadata-access

Upvotes: 2

Related Questions