如何解决我想使用api-graph发布stram吗?
| 该应用程序具有“ 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);
如果没有用,请告诉我...
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。