3
我一直在努力从用户的计算机上传图像并使用Facebook Graph API发布到我们的组页面。我能够发送一个post到Facebook的图片,但是,我收到了这个错误:错误:(#200)用户必须接受TOS。在某种程度上,我不认为当照片上传到我们的群组页面时,我需要用户授权自己。下面这是代码我使用:用户在将照片发布到组页面时必须接受TOS - Facebook Graph API错误
if($albumId != null) {
$args = array(
'message' => $description
);
$args[basename($photoPath)] = '@' . realpath($photoPath);
$ch = curl_init();
$url = 'https://graph.facebook.com/'.$albumId.'/photos?'.$token;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $args);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$data = curl_exec($ch);
$photoId = json_decode($data, true);
if(isset($photoId['error'])) die('ERROR: '.$photoId['error']['message']);
$temp = explode('.', sprintf('%f', $photoId['id']));
$photoId = $temp[0];
return $photoId;
}
有人可以告诉我,如果我需要从用户请求额外的权限或者什么,我做错了什么?
非常感谢!
其实,我从来没有成功地在这个:(。作为一个替代,我们创建了一个新的Facebook用户,而不是一组页面。
这是2013年我们仍然看到它:( – Nevir 2013-03-28 15:38:38
这是2014年我们仍然看到它:( – durum 2014-05-06 11:29:19
这是2015年,我们看到的仍然是它:( – 2015-04-29 18:41:37