jublo / codebird-php

Easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library.
https://www.jublo.net/projects/codebird/php
GNU General Public License v3.0
776 stars 234 forks source link

media_upload with https #201

Closed alpaltunel closed 6 years ago

alpaltunel commented 7 years ago

Hi,

I am trying to add image from my website and attach it to a tweet. if I try to download it with https://www...., it fails and error message: Fatal error: Uncaught exception 'Codebird\CodebirdMediaException' with message 'Downloading a remote media file failed.' in ...... Codebird\Codebird->_fetchRemoteFile('https://www.onl...')......

instead I use: $reply = $cb->media_upload([ 'media' => str_replace("https", "http", $pInfo['Photo']) ]);

any mistakes I do? I put crt file in same dir as codebird.php. ssl in registered streams. Do I have to add openssl support to php? (centos 6.5, php 5.5)

mynetx commented 7 years ago

Would you mind sending the full remote URL to us so we can reproduce the issue? If you don’t want to post it publicly, you can email it to support@jublo.net.

mynetx commented 6 years ago

Closing this issue due to not having seen any further comments. Feel free to (re-) open a new one if you still encounter this problem.