php - How to read facebook timeline with Graph API? -
i need read facebookk timeline , tutorial says me read api graph , use:
https://graph.facebook.com/***/posts?access_token=***
but when use code obtain {data[]}
. don' know how wrong. can me?
you question pretty broad.
did use facebook api explorer? found here
are sure token valid?
i pretty sure doing wrong call above un-versioned default v2.0+. means can't query based on user name. next if using user id in middle *** return empty because user hasn't authorized app got token, and/or has decided hide open graph calls. can use public page id in spot page posts.
give try
https://graph.facebook.com/me/posts?access_token=***
provided have valid token should work unversioned calls. suggest play api explorer linked above.
Comments
Post a Comment