Hi,

I'm using the PHP Twitter oAuth library (https://github.com/abraham/
twitteroauth) to send a tweet and update a user's profile image. The
tweet sends OK, but when I echo out the result of the call, I get the
"Something is technically wrong." page and a 500 error code in the
header. Here's an abridged version of my code:

require_once('twitteroauth/twitteroauth.php');

$pic = "/path/to/foo.jpg";

$connection = new TwitterOAuth ($consumer_key ,$consumer_secret ,
$access_key , $access_secret );

$connection->format = 'xml';
$image = $connection->post('account/update_profile_image',
array('image' => "@$pic"));

Any ideas where I might be going wrong?

Cheers

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to