peterino
6p2 comments posted · 0 followers · following 0
15 years ago @ LoveTheCool - Twitter Followers Gone · 0 replies · +1 points
(A variation of) the followers bug seems to be back. Or does Twitter do "SPAM cleanup" occasionally - with a lot of false positives? We lost probably half of the followers of our corporate account this weekend. And I'm not sure why... :-(
15 years ago @ Brown PHP - Use PHP to Twitter Usi... · 0 replies · 0 points
It uses the same library, BUT you only need the two source files in the "twitteroauth" folder, and the following code:
require_once('twitteroauth.php');
define('CONSUMER_KEY', '<get_his_from_your_twitter_app>');
define('CONSUMER_SECRET', '<get_his_from_your_twitter_app>');
define('OAUTH_TOKEN', '<get_his_from_your_twitter_app>');
define('OAUTH_SECRET', '<get_his_from_your_twitter_app>');
$text = 'Using Abrahms Twitter OAuth library -- and loving it!';
$tweet = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_SECRET);
$tweet->post('statuses/update', array('status' => $text));