tijsverkoyen / TwitterOAuth

PHP Twitter is a (wrapper)class to communicate with the Twitter API with the use of OAuth.

Home Page:http://classes.verkoyen.eu/twitter_oauth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Was your library not meant for including an image in a tweet?

djangman opened this issue · comments

In the doCall() function, you're running file_get_contents on it.. but I notice that's not the way Twitter wants it done.
They want you to upload it first, and then include the media_id's with the update status call.

Anyway, when I include a filepath argument to a manual doCall() call, I get "cannot authenticate".

Nevermind, that was meant for updating the profile/header images, etc. Not related to posting tweets with attached images. I'm working on the code to supplement your library with this ability. I'll post another thread in case someone needs that code.