Facebook graph API won't return friends work history -
let's rule out obvious...
my facebook app requests following permissions: user_work_history, friends_work_history
...so usual suspect (insufficient permissions) isn't source of problem.
issue:
the following graph api call works perfectly: /me/friends?fields=name,work
i names, ids, work history, etc. you'd expect.
but
when replace /me user id of 1 apps users (who has authorized app), can see names , ids (no work or education fields).
why this?
the reason why, access token using not access token belonging user want at. check out token in linter tool (https://developers.facebook.com/tools/lint) , see belongs to.
when user access token individual, can use friends. wont need specify /{userid}/friends?fields=name,work (although could), /me/friends?fields=name,work since access token belongs user id.
Comments
Post a Comment