I am using twitter-async library
when I use getAuthenticateUrl() as
$authenticate_url = $twitter->getAuthenticateUrl();
on doing this:
<?php
ini_set("display_errors", "1");
error_reporting(E_ALL);
echo ($authenticate_url) ? "success".$authenticate_url : "error";
?>
I get this error
Object of class EpiTwitterJson could not be converted to string
I would be really grateful if you could please help me with this.
Thank you very much
It sounds like
$authenticate_urlis an object which you can’t echo as a string. Tryvar_dump($authenticate_url);to see what$authenticate_urlis/contains.