7

I want to get list of friends who likes my post on my timeline since 1st Jan, 16 and the story's privacy set to FRIENDS. So I tried this Graph API but I'm getting list of profiles which included friends and some non-friends profile too !
I want to get only the friends profile list.

me/posts?fields=likes{name},privacy=ALL_FRIENDS&since=2016-01-01

The main target is to create possible friends list without taggable or invite API

Sourav
  • 17,065
  • 35
  • 101
  • 159

1 Answers1

2

If the privacy is set to friends, you should only get friends. There is no way to check if someone is a friend, unless that friends authorized your App too. In that case, he would show up in the /me/friends endpoint.

I can only think of one reason why you would get more than just friends: If you tagged a friend, the friends of the tagged user would see the post too.

If that is not the case, you may file a bug: https://developers.facebook.com/bugs/

andyrandy
  • 72,880
  • 8
  • 113
  • 130
  • Nope. My posts have no tagged profile. But still getting non-friend profiles. – Sourav Aug 14 '16 at 14:41
  • i tested the api call and only got friend likes. if you are sure that there are likes from non-friends, you should really file a bug. – andyrandy Aug 14 '16 at 14:57
  • I've filed a bug. Thnx for the valuable info :) – Sourav Aug 14 '16 at 14:58
  • Are you sure you're not confusing 'non-friends' with 'a user who wasn't in the response to a call to /me/friends'? The latter contains only the users' friends who have also logged into your app – Igy Aug 19 '16 at 14:32