WordPress

Importing Your Twitter Timeline to WordPress

The Twitter import tools mentioned in the WordPress Codex do no longer work, because they all rely on the old Twitter RSS feed which is no longer provided by Twitter. This article will explain how to create an independent RSS feed for your Twitter timeline which then can be used to import tweets as WordPress posts.

Last week at re:publica 13 Sascha Lobo presented Reclaim Social, a WordPress based concept, consisting of some plugins and scripts that allow you to mirror and store your content and activities around the web on your own blog. Because I like the idea I wanted to give it a try and installed the FeedWordPress plugin along with some PHP scripts  and duct tape from their tech specs on our new Coworking website.

Here’s how it works

Go to dev.twitter.com and create a new app. After submitting the new app on your application’s detail page click the «Create my access token» button on the bottom of the page. After reloading the page you will find all OAuth settings you need for your Twitter proxy script.

Twitter App Details

The file proxy/twitter.php reads the configuration from proxy/config.php, so you have to put the customer key and secret as well as the user token (access token) and user secret (access token secret) in the $twitter_oauth_setting array.

// setup your own app here
// https://dev.twitter.com/apps/new
	$twitter_oauth_setting = array(
	  'consumer_key'    => 'yyy',
	  'consumer_secret' => 'yyy',
	  'user_token'      => 'yyy-yyy',
	  'user_secret'     => 'yyy',
	);

Once you did that and uploaded it to your web server, you can access the feed at www.yourdomain.com/proxy/twitter.php which is also the URL you have to enter in the Syndication Sites section of your WordPress admin panel.

Syndicated Sources

The FeedWordPress has many configuration settings, but those are documented elsewhere. I had everything up and running in 30 minutes, so it should take you even less with help of this little tutorial.

5 Kommentare zu «Importing Your Twitter Timeline to WordPress»

  1. Sorry, da hab ich wohl Enter gedrückt oder so

    kannst du genauer erklären wie du die scripte eingebaut hast? ich bin da gerade recht Planlos und am scheitern.

    Schreib mir noch bitte eine Mail.

    Danke:)

     

  2. I’d like to reply in English, because our developer blog is for an international audience.

    The scripts can be just uploaded to your web space independent of your WordPress installation. My WordPress installation e.g. is in /home/mydomain.ch/public_html, so I uploaded the proxy folder to /home/mydomain.ch/public_html/proxy, so that they can be accessed through http://www.mydomain.ch/proxy/twitter.php. mydomain.ch has to be replaced with your domain.

    I hope this helps.

Kommentar verfassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert