Hi,
I am using Codebird to retrieve twitter profile information, like ID and profile pictures. It has been working for the past few weeks, but I am suddenly getting 500 errors. Is there a way to determine the cause of the 500 error?
Here is the function that I am using:
` function get_twitter_user_profile($tw_screen_name){
\Codebird\Codebird::setConsumerKey('YOURKEY', 'YOURSECRET'); // static, see README
$cb = \Codebird\Codebird::getInstance();
$cb->setToken('YOURTOKEN', 'YOURTOKENSECRET');
$cb->setUseCurl(false);
$reply = $cb->users_show("screen_name=$tw_screen_name");
$id=$reply->profile_image_url_https;
return $id ;
}
`
Here is the response I am getting:
stdClass Object ( [httpstatus] => 500 [rate] => )
Hi, I am using Codebird to retrieve twitter profile information, like ID and profile pictures. It has been working for the past few weeks, but I am suddenly getting 500 errors. Is there a way to determine the cause of the 500 error? Here is the function that I am using: ` function get_twitter_user_profile($tw_screen_name){ \Codebird\Codebird::setConsumerKey('YOURKEY', 'YOURSECRET'); // static, see README $cb = \Codebird\Codebird::getInstance(); $cb->setToken('YOURTOKEN', 'YOURTOKENSECRET'); $cb->setUseCurl(false); $reply = $cb->users_show("screen_name=$tw_screen_name"); $id=$reply->profile_image_url_https; return $id ;
`
Here is the response I am getting:
stdClass Object ( [httpstatus] => 500 [rate] => )