I have the following code
$taggable = (new FacebookRequest(
$session,
'GET',
'/me/friends'
))->execute()->getGraphObject()->asArray();
echo '<pre>' . print_r( $taggable, 1) . '</pre>';
I am trying to get the id of the list of friends who is also using the app, so that the user can tag the photo with these friends. Right now the code prints the friends who are also using the app, their name and id. I want to get the id of a friend to sub into the parameters of "tags", however the getProperty('id') doesn't work and gives me an error. I am new to facebook api so I am unfamiliar with the syntax.
How do I get the id of the friend to sub into:
'tags' => '[{\'tag_uid\': \'testing\'}]',
Thanks