Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/253.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用EasyBlog';s从外部PHP自动定位_Php_Joomla_Easyblog - Fatal编程技术网

使用EasyBlog';s从外部PHP自动定位

使用EasyBlog';s从外部PHP自动定位,php,joomla,easyblog,Php,Joomla,Easyblog,我正在尝试将一篇EasyBlog博客文章从我自己的组件自动发布到Twitter。我目前有: $blog = EasyBlogHelper::getTable( 'Blog' ); $blog->load( $postId ); $blog->autopost(array('twitter')); autopost说它成功了,但是这篇文章没有出现在Twitter上,我的Joomla网站的后端也没有任何指示。我没有收到任何错误消息 我该怎么做才能做到这一点呢?事实证明,我没有正确使用E

我正在尝试将一篇EasyBlog博客文章从我自己的组件自动发布到Twitter。我目前有:

$blog = EasyBlogHelper::getTable( 'Blog' );
$blog->load( $postId );
$blog->autopost(array('twitter'));
autopost
说它成功了,但是这篇文章没有出现在Twitter上,我的Joomla网站的后端也没有任何指示。我没有收到任何错误消息


我该怎么做才能做到这一点呢?

事实证明,我没有正确使用EB的API。最后一行应该是:

$blog->autopost(array('twitter'), array('twitter'));

顺便说一句:我不熟悉EasyBlog,但我想看看如何调试它。