问题描述
|
该应用程序具有“ 0”权限,但是如何使用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\',}
});
解决方法
使用图谱api发布,应发送发布请求。像这样http://developers.facebook.com/docs/reference/api/#publishing
,尝试这个:
<?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);
如果没有用,请告诉我...