다음 라인을 사용하여 Facebook에 비디오를 업로드하려면. 나는 그것이 작동 게시 형성 curl
을 변경하는 경우php - Facebook Video Upload Curl
"error":{"message":"(#353) You must select a video file to
upload.","type":"OAuthException","code":353}}
:
$video = "http://xxx.com/video.mp4";
$data = array('name' => 'file', 'file' => $video,
'access_token' => $access_token, '_title' => $video_title,
'description' => $video_desc);
$post_url = "https://graph-video.facebook.com/" . $page_id . "/videos";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $post_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$res = curl_exec($ch);
나는 오류가 발생했습니다. 왜 그렇게 생각하니?
당신이 결국 해결책을했다 않았다
FB 양식 데이터로 인코딩 전달 될 수있는 비디오 파일을 요청? – geevee
URL에서 동영상을 업로드 할 때 페이스 북에서 지원 되나요? – wuliwong