使用EasyBlog';s从外部PHP自动定位
我正在尝试将一篇EasyBlog博客文章从我自己的组件自动发布到Twitter。我目前有:使用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
$blog = EasyBlogHelper::getTable( 'Blog' );
$blog->load( $postId );
$blog->autopost(array('twitter'));
autopost
说它成功了,但是这篇文章没有出现在Twitter上,我的Joomla网站的后端也没有任何指示。我没有收到任何错误消息
我该怎么做才能做到这一点呢?事实证明,我没有正确使用EB的API。最后一行应该是:
$blog->autopost(array('twitter'), array('twitter'));
顺便说一句:我不熟悉EasyBlog,但我想看看如何调试它。