0

アプリケーションにはpublish_stream権限がありますが、Graph APIを使用してこのコードを作成するにはどうすればよいですか?

FB.ui(
   {
     method: 'feed',
     name: 'name',
     link: 'link',
     picture : 'image',
     caption: 'caption',
     description : 'description',
     message: '',
     display:'iframe',
properties: {
    'Video name' : { 'text': 'alksdlkjslk', 'href': 'asdasdasd' },
    'Shared From' : { 'text': 'asdadasd', 'href': 'asdasdasd' },

}
   });
4

2 に答える 2

0

グラフAPIを使用して公開し、POSTリクエストを送信する必要があります。このようにhttp://developers.facebook.com/docs/reference/api/#publishing

于 2011-04-13T12:15:42.587 に答える
0

これを試して:

<?php   
$access_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);

うまくいかない場合はお知らせください...

于 2011-04-13T12:22:15.757 に答える