Closed MrSleeps closed 5 years ago
So, I am trying a basic post image to Twitter via my company dashboard. I can get it to post, that isn't an issue. But it makes 2 posts of the same thing.. Text only posts don't.
Any ideas as to why this is happening? Code below
include_once('../vendor/jublonet/codebird-php/src/codebird.php'); $thisWeeksPic = "/path/to/thisweeks.jpg"; \Codebird\Codebird::setConsumerKey("Key", "Secret"); $cb = \Codebird\Codebird::getInstance(); $cb->setToken("token", "secret"); $params = array( 'status' => 'Testing', 'media[]' => $thisWeeksPic ); $reply = $cb->statuses_updateWithMedia($params);
Turns out it was nothing to do with my code, but a stupid browser extension. Simplest things..
So, I am trying a basic post image to Twitter via my company dashboard. I can get it to post, that isn't an issue. But it makes 2 posts of the same thing.. Text only posts don't.
Any ideas as to why this is happening? Code below