开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜