If I issue $friends = $facebook->api('/me/friends');, is the output in JSON format?
Also, where can I find the complete list of API strings?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
the facebook php api will return an associative array, as such
$friendswill contain an assoc array of all friends for the current user. (it uses standard json_decode to accomplish this – http://php.net/manual/en/function.json-decode.php)as mentioned by Rafiq + others, https://developers.facebook.com/docs/reference/api/ is the api reference you would be after, and the graph api explorer tool (https://developers.facebook.com/tools/explorer) is a great resource for viewing the expected JSON output of api calls .(keeping in mind the php sdk will return this as an assoc array