Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont work. Help please #377

Closed
kak2z7702 opened this issue Jul 4, 2015 · 1 comment
Closed

Dont work. Help please #377

kak2z7702 opened this issue Jul 4, 2015 · 1 comment

Comments

@kak2z7702
Copy link

I have this code
he does not work.
just a white screen. not even about the error messages.
what am I doing wrong?

require_once ("TwitterOAuth/autoload.php");
require_once("TwitterOAuth/src/TwitterOAuth.php"); 
use Abraham\TwitterOAuth\TwitterOAuth;
$connection = new TwitterOAuth('XXXXXXXXXXXXXXXX', 'YYYYYYYYYYYYYYYY', 'GGGGGGGGGGGGGG', 'JJJJJJJJJJJJJJJJJJJJ');

$media1 = $connection->upload('media/upload', array('media' => 'http://my.site/forum/gallery/5591_02_07_15_8_54_47.jpeg'));

$parameters = array(
    'status' => 'Meow Meow Meow',
    'media_ids' => implode(',', array($media1->media_id_string, $media2->media_id_string)),
);
$result = $connection->post('statuses/update', $parameters);
@abraham
Copy link
Owner

abraham commented Jul 5, 2015

The image has to be on your server as a file. It can't be a URL.

@abraham abraham closed this as completed Jul 18, 2015
Repository owner locked and limited conversation to collaborators Dec 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants