Php TwitterAPI帐户/更新\u配置文件\u背景\u图像不工作
我正在使用Abraham的PHP库连接twitter api。 我正在尝试更新背景配置文件,身份验证后执行以下操作: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
$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
都可以正常工作。
有什么想法吗?谢谢。尺寸和文件大小都有限制。确保你的形象是真实的