5
我正在实现Facebook图形API以获得用户详细信息,如名字,电子邮件等。Facebook图形API错误
下面是我的代码。
$nvpreq = "access_token=160370244010460|b8eba6c19f01b271ef0c682e-100000018108668|q50nk4_LpXvCdnpgiI-jyBPrzCM";
$Curl_Session = curl_init('https://graph.facebook.com/100001573561119');
curl_setopt ($Curl_Session, CURLOPT_POST, 1);
curl_setopt ($Curl_Session, CURLOPT_POSTFIELDS, $nvpreq);
curl_setopt ($Curl_Session, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$httpResponse = curl_exec ($Curl_Session);
curl_close ($Curl_Session);
但我收到以下错误
"type":"GraphMethodException","message":"Unsupported post request."}}1
任何人都可以请帮助我。
感谢, 阿图尔
您能否请格式化代码以便阅读?谢谢 – Bartek 2011-01-24 20:00:55