I was under the impression Facebook only gave out lists of friends now who use a certain app.
In fact in this case that's all I want, but FB is returning all friends for all users I test with.
I'm using fields=installed
but it seems to make no difference.
Here's the code I'm using, is there a way to just show friends of users who use the app?
$fb_user = $mysqli->real_escape_string($_REQUEST['user']);
$facebook = new Facebook(
array(
'appId' => $appID,
'secret' => $secret
)
);
//TO GET ACCESS TOKEN
$facebook->setExtendedAccessToken();
$access_token = $facebook->getAccessToken();
$fbFriends = 'https://graph.facebook.com/'.$fb_user.'/friends?fields=installed&access_token='.$access_token;
$friendsList = json_decode(file_get_contents($fbFriends),true);