First off appologies for starting a new thread for this, I'm sure this has been covered.
I'm using onAfterWrite to auto tweet blog posts as follows.
function onAfterWrite() {
parent::onAfterWrite();
$this->Tweet();
}
function Tweet() {
$twitterObj = new EpiTwitter(
$TWITTER_CONSUMER_KEY="****",
$TWITTER_CONSUMER_SECRET="****",
$userToken="****",
$userSecret="****"
);
$twitterObj->post(
'/statuses/update.json',
array(
'status' => $this->Title.' '.Director::absoluteBaseURL().$this->Link()
)
);
}
The above code doesn't help much, altough it is working, it's just an error on saving which also doesn't help much. Does anyone know what would cause 500//There has been an error Failed to load source (found in the console of Fire Bug)
For any one thats interested I'm using jmathai's Outh which can be downloaded here https://github.com/jmathai/twitter-async there is good documentation here http://www.jaisenmathai.com/articles/twitter-async-documentation.html#methodnames