How to get Facebook page total likes number with the new Graph API (v2.4) -


so there update facebook graph api , pretty requires access_token retrieve type of data.

previously number of page likes accessing graph so:

http://graph.facebook.com/{page-name} 

but if try says need have access token because of recent update api. issue having cant access likes access token response getting:

request

http://graph.facebook.com/{page-name}/?access_token={access_token} 

response

array(2) {     ["name"] "page name"     ["id"] "page id" }  

now @ first thought access token wasn't being generated correct scopes 99% sure need read_stream pull type of data.

second thought have removed ability acces likes of page , need page token receive type of data or missing incredibly small here , still achievable?

so question can still number of likes of page using facebook graph api , if answer yes how do it?

any appreciated

this can you! add ?fields=likes after page name/id. can use access token fetching data!

graph.facebook.com/{page_name}?fields=likes&access_token={token}


Comments