저는 사용자의 컴퓨터에서 이미지를 업로드하고 Facebook Graph API를 사용하여 그룹 페이지에 게시하는 데 어려움을 겪고 있습니다. 나는 이미지와 함께 페이스 북에 게시물 요청을 보낼 수 있었지만, 나는이 오류를 다시 얻고있다 : 오류 : (# 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;
}
누군가가 말해 줄래?
대단히 감사합니다.
사실, 주변의 일, 우리는 새로운 페이스 북의 사용자 대신 그룹 페이지를 만든 것처럼 나는..이 :(에서
그것은 2013 년이고 우리는 여전히 그것을보고있는 :( – Nevir
그것은 2014 년이고 우리는 여전히 그것을보고있는 :(그것은 2015 년의 – durum
우리는 여전히 그것을보고있는 :( –