facebook - Graph API dependant query -
having facebook username, need user id access feed, right i'm using call:
https://graph.facebook.com/john.doe which returns like:
{ "id": "612029xxx", "first_name": "john", "gender": "male", "last_name": "doe", "link": "https://www.facebook.com/john.doe", "locale": "en_us", "name": "john doe", "username": "john.doe" } there use id links:
https://graph.facebook.com/612029xxx/links/?access_token=xxx but make batch request dependant query make 1 call:
https://graph.facebook.com/batch=[{"method":"get","name":"do-me-first","relative-url":"?id=john.doe",{"method":"get","relative-url":"links","depends-on":"do-me-first"}}]&access_token=xxx but gives me error: cannot query users username (john.doe).
why can access user info username in single call, , not in dependant one??
p.s.: second query hasn't been constructed, since giving me first error, couldn't know!
Comments
Post a Comment