Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php TwitterAPI帐户/更新\u配置文件\u背景\u图像不工作_Php_Api_Twitter_Twitter Oauth - Fatal编程技术网

Php TwitterAPI帐户/更新\u配置文件\u背景\u图像不工作

Php TwitterAPI帐户/更新\u配置文件\u背景\u图像不工作,php,api,twitter,twitter-oauth,Php,Api,Twitter,Twitter Oauth,我正在使用Abraham的PHP库连接twitter api。 我正在尝试更新背景配置文件,身份验证后执行以下操作: $oauth = new TwitterOAuth($this->tw_key, $this->tw_secret, $this->tw_current_accessToken, $this->tw_current_accessSecret); $oauth->host = $this->tw_host; $result = $oauth-&g

我正在使用Abraham的PHP库连接twitter api。 我正在尝试更新背景配置文件,身份验证后执行以下操作:

$oauth = new TwitterOAuth($this->tw_key, $this->tw_secret, $this->tw_current_accessToken, $this->tw_current_accessSecret);
$oauth->host = $this->tw_host;
$result = $oauth->post('account/update_profile_background_image', array('image' => base64_encode(file_get_contents($image_full_path))));
图像路径正确。
我可以完美地执行
验证\u凭据,因此身份验证不是问题。
它返回json编码的数组,一切正常,但背景图像参数没有改变。
如果我使用
array('image'=>'@.$image\u full\u path)
执行此操作,它会给出131个内部错误,可能是因为Abraham的库不支持多部分图像上载

所有其他方法,如
account/update\u profile\u image
都可以正常工作。

有什么想法吗?谢谢。

尺寸和文件大小都有限制。确保你的形象是真实的