facebook Graph API haber beslemesine yayımlamak yok

0 Cevap php

facebook, haber akışını güncellemek için çalışıyoruz im. Yeni grafik API kullanarak Im. Ben grafiğe bağlanabilir, ama yem nesneye bazı içerik yayımlamak çalıştığınızda, hiçbir şey olmuyor.

İşte benim kod:

<?php   
$token = "xxxx";

$fields = "message=test&access_token=$token";

$c = curl_init("http://graph.facebook.com/me/feed");
curl_setopt($c,"CURLOPT_POST", true);
curl_setopt($c,"CURLOPT_POSTFIELDS",$fields);

$r = curl_exec($c);
print_r($r);

Bu döndürür:

{"error":{"type":"QueryParseException","message":"An active access token must be used to query information about the current user."}}1

sonra ben GET access_token geçmek için deneyin:

$c = curl_init("http://graph.facebook.com/me/feed?access_token=$token");

Bu döndürür:

{"data":[]}1

Ben yanlış bir şey yapıyorum?

teşekkürler

0 Cevap