That code will no longer work, basic authentication is no longer support for 
the Twitter API. You will need to use OAuth to do so.

You can find some examples of using the twitter-async library written by Jaisen 
Mathai at:

Hope this helps.


On 17 Mar 2011, at 16:07, steiljesoc wrote:

> I'm using the my_twitter PHP library from twitter website but every
> time I try to post a status I get an invalid username/password. Here's
> the code that's making the curl call.
> Any ideas?
> $ch = curl_init();
>                               curl_setopt($ch, CURLOPT_URL, $url);
>                               curl_setopt($ch, CURLOPT_HTTPAUTH, 
>                               curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
>                               curl_setopt($ch, CURLOPT_USERPWD, 
> $this->Username.':'.$this-
>> Password);
>                               curl_setopt($ch, CURLOPT_GET, true);
>                               curl_exec($ch);

Twitter developer documentation and resources:
API updates via Twitter:
Issues/Enhancements Tracker:
Change your membership to this group:

Reply via email to