1
$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);
这是我的代码以获得我的朋友 以下是预期产出。我将在哪里得到所有我的朋友姓名和身份证。使用cURL获取数据
{
"data": [
{
"name": "xxxx",
"id": "xxxx"
},
{
"name": "xxxx",
"id": "xxxx"
},
但它给错误。
{"error":{"message":"(#100) ","type":"OAuthException","code":100}}
我不想让我的朋友通过SDK,但accesstoken – user1863472