twitter : getAuthenticateUrl : Object of class EpiTwitterJson could not be converted to string
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_ur开发者_StackOverflowl : "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_url
is an object which you can't echo as a string. Try var_dump($authenticate_url);
to see what $authenticate_url
is/contains.
精彩评论