Hi All,
I switched everything over to Abraham’s TwitterOauth. WOW, great job, Abraham!
Everything works great except one for one new thing I’m trying to do. I want to post tweets with media. That media can be either a jpg or png image, or an MP4 video.
Here’s the pertinent part of the code:
$connection = new Abraham\TwitterOAuth\TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $user_token, $user_secret);
$media1 = $connection->upload(‘media/upload’, [‘media’ => ‘https://pathToImage.jpg’]);
print_r($media1);
The print_r shows " stdClass Object ( [request] => /1.1/media/upload.json [error] => media type unrecognized. "
It’s probably staring me in the face, but I just can’t see the problem.
Is there any way to push the media type? I also don’t see any media size parameter which the docs say is required.
Any help would be appreciated
Paul