0
我有這樣的代碼,我使用的調度使用圖形API的帖子給Facebook:無效的請求時發佈YouTube視頻到Facebook的
$body = array(
'message' => $post->message,
'link' => site_url('index.php/cron/redirect/'.url_encode($post->id_cron)),
'picture' => 'http://img.youtube.com/vi/'.$post->picture.'/0.jpg',
'name' => $post->name,
'caption' => $post->caption,
'description' => $post->description,
'access_token' => $access_token,
'appsecret_proof' => hash_hmac('sha256', $access_token, $this->faceboook->app_secret),
'type' => 'video',
'source' => 'http://www.youtube.com/e/'.$post->picture
);
$relative_url = "/".$post->id_wall."/feed";
$batch = array('method' => 'POST', 'relative_url' => $relative_url, 'body' => http_build_query($body));
$facebook->api('?batch='.urlencode(json_encode($batch)), 'POST');
現在的職位是成功地被貼在該組的牆,鏈接是正確的,縮略圖是正確的,並且它正在顯示爲視頻,因爲小播放按鈕顯示在縮略圖的左下角。現在的問題是我得到
"Invalid Error: There was a problem with the parameters of the request"
每當我嘗試點擊縮略圖。如果預期的行動是這個帖子會打開一個玩家並在羣牆上播放視頻。這裏似乎是什麼問題?誰能幫幫我嗎?