How can I check whether someone is friend of another one in Graph API? -
i know endpoint me/friends
lists user friends authorized app. sub-endpoint exists: me/friends/<user>
, checks whether 2 users friends:
modifiers
you can append person's id edge in order determine whether person friends root node user:
[...]
if user-a friends user-b in above request, response contain user object user-b. if not friends, return empty dataset.
does modifier imply both users have authorized application? or return data specified friend?
currently i'm developer of application, in test mode. in graph api call every picture (from 'me' user) , tags. each tag (which has id
, name
of tagged user), want know whether such user (by id in tag) friend of current ('me') user.
but result {data:[], summary:xxx}
summary friend count (as if asked me/friends
endpoint, without specifying user).
notes: user of app. administrator of app. granted user_friends
permission.
question: behavior expected me/friends/<user>
? know expected me/friends
since nobody playing in app yet. "expected behavior" mean: such sub-endpoint returns data if user friend , authorized app. there way check whether 2 given users friends regardless whether second 1 authorized app or not?
Comments
Post a Comment