mod_twitter
Twitter updates in your Zotonic site.
The Twitter module allows you to have tweets "mirrored" from Twitter into your Zotonic site. It does this by creating a background process which has a continuous HTTP connection to the Twitter Streaming API. This way, tweets arrive instantly at your Zotonic site, no polling necessary!
Installation
In the "config" section in the admin, create 2 new config keys:
- mod_twitter / api_login - Your Twitter username
- mod_twitter / api_password - Your Twitter password
We need your account details to startup the streaming API. mod_twitter will never write to your account: it only reads your updates.
Now, activate the Twitter module under "Modules".
When you have activated the Twitter module, you should go to a person's page in the admin. In the edit page, you see in the sidebar a new item, called "Twitter ID". Here you can enter the numeric Twitter ID of this user. (you can find this ID by looking at the "rss" URL on the user's twitter page, copy-pasting the numeric part of the URL).
At this point the module will login to twitter and "follow" the user(s) that you entered their twitter IDs for.
If you tweet something on twitter using one of the accounts Zotonic follows, Zotonic will create new resources for you called "Tweets", and connects them to the right users, using the "Tweeted" predicate.
In your template
To show the tweets, you can use the twitter filter to automatically make links of the @ and # twitter tags.
This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.