1

I'm trying to autopost an EasyBlog blog post from my own component to Twitter. I currently have:

$blog = EasyBlogHelper::getTable( 'Blog' );
$blog->load( $postId );
$blog->autopost(array('twitter'));

autopost says it's successful, but the post isn't showing up on Twitter, nor is there an indicator in the backend of my Joomla site. I don't get any error messages.

What can I do to achieve this?

Don
  • 863
  • 1
  • 8
  • 22
SomeKittens
  • 38,868
  • 19
  • 114
  • 143
  • Just an aside: I'm not familiar with EasyBlog but I'm interested to see how one would debug this. – Matt Aug 03 '12 at 19:54

1 Answers1

0

As it turns out, I was using EB's API incorrectly. The final line should be:

$blog->autopost(array('twitter'), array('twitter'));
SomeKittens
  • 38,868
  • 19
  • 114
  • 143