开发者

twitter : getAuthenticateUrl : Object of class EpiTwitterJson could not be converted to string

开发者 https://www.devze.com 2023-03-07 05:11 出处:网络
I am using twitter-async library when I use getAuthenticateUrl() as $authenticate_url = $twitter->getAuthenticateUrl();

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

精彩评论

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

关注公众号