$args = array(
'access_token' => 'xxxxxxx'
);
$url = "https://graph.facebook.com/me/friends";
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $args);
curl_exec($ch);
curl_close($ch);
これは私の友達を取得するための私のコードです。以下は予想される出力です。友達全員の名前とIDを取得する場所。
{
"data": [
{
"name": "xxxx",
"id": "xxxx"
},
{
"name": "xxxx",
"id": "xxxx"
},
しかし、その与えるエラー。
{"error":{"message":"(#100) ","type":"OAuthException","code":100}}