I’m using the latest PHP SDK and have tried
$facebook->('/me/friends?fields=installed')
and it tells me I require an access token.
I tried $facebook->getUser(), and I get zero even though I am logged into Facebook.
I’m thinking that I figure out a user’s friends who are on the application if I have the user’s Facebook ID or with the fields=installed method.
Is there an easier way? If not, why am I having trouble getting the ID?
It turns out this can be accomplished rather trivially with a “Facepile”. See https://developers.facebook.com/docs/reference/plugins/facepile/