【问题标题】:twitter : getAuthenticateUrl : Object of class EpiTwitterJson could not be converted to stringtwitter:getAuthenticateUrl:EpiTwitterJson 类的对象无法转换为字符串
【发布时间】:2011-08-30 03:04:59
【问题描述】:

我正在使用 twitter-async 库

当我使用 getAuthenticateUrl() 作为时

$authenticate_url = $twitter->getAuthenticateUrl();

关于这样做:

<?php
ini_set("display_errors", "1");
error_reporting(E_ALL);
echo ($authenticate_url) ? "success".$authenticate_url : "error";
?>

我收到此错误

EpiTwitterJson 类的对象无法转换为字符串

如果您能帮我解决这个问题,我将不胜感激。

非常感谢

【问题讨论】:

    标签: php json oauth twitter twitter-oauth


    【解决方案1】:

    听起来$authenticate_url 是一个不能作为字符串回显的对象。试试var_dump($authenticate_url); 看看$authenticate_url 是什么/包含什么。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-05
      • 2015-07-27
      • 2012-04-29
      • 2011-04-06
      • 2011-11-30
      相关资源
      最近更新 更多