2016-05-11 25 views
-1

我試圖自動過帳twiter並得到了以下錯誤:錯誤而autoposting在twitter { 「錯誤」:[{ 「代碼」:44, 「消息」: 「media_ids參數無效」}]}

{"errors":[{"code":44,"message":"media_ids parameter is invalid."}]} 

代碼

$media1 = $tweet->upload('media/upload', array('media' => 'E:/wallpaper/xyz.jpg')); 

$res=$tweet->post('statuses/update', array(
'status' => $tweetMessage, 
    'media_ids' => $media1->media_id_string 
)); 
+0

可以將PHP代碼從E獲取:/驅動器? –

+0

yes.it正在提取@hd –

回答

0

I've also started receiving this error. Very strange because one day it worked, and the next day it didn't. Did you ever figure out the cause?

EDIT: I figured out where I was having the problem. I was using the Tweepy library and had to update the API.update_status() call from update_status(my_tweet) to update_status(status=my_tweet) due to a change in Twitter's API

https://twittercommunity.com/t/media-ids-parameter-is-invalid/12926