You are here

README.txt in Twitter 7.4

Introduction
============
Twitter module allows listing tweets in blocks or pages. Its integration with Views opens the
door to all sorts of formatting (ie. as an automatic slideshow with views_slideshow). It also
provides useful input filters to easily link Twitter accounts and searches within text.

Twitter's submodules allow posting to twitter, executing actions/rules when tweeting or login
with a Twitter account.

Installation
============
Twitter's REST API library is out of the module. Although this needs an extra step on installation,
it makes the library reusable for both Drupal 6 and 6 versions and also other modules.

To set it up, just download twitter.lib.php from https://github.com/juampy72/twitter-rest-php/downloads
to your libraries directory (normally sites/all/libraries) so its final location is
sites/all/libraries/twitter/twitter.lib.php

To verify that it has been installed correctly, view the Status Report at
http://yoursite/admin/reports/status.

OAuth
=====
OAuth module is required for all requests to the Twitter REST API 1.1.

When you download the OAuth module, get the latest stable release available at http://drupal.org/project/oauth

Once OAuth has been enabled, go to admin/config/services/twitter and follow instructions in order
to provide your Application keys.

How to add a Twitter account to a Drupal user account
=====================================================
Read http://drupal.org/node/1253026 for details.

How to use the username and hashtag input filters
=================================================
1. Go to admin/config/content/formats.
2. Select the text format where you want to use the filters.
3. At "Enabled filters" check the Twitter converters.

After that, clear cache and try to create a page with the following body:

#drupal @drupal

The above links to a search in Twitter over the #drupal tag and a to the @drupal profile.
These filters are avilable when configuring a tweets Views.

How to post to Twitter
======================
1. Read the OAuth section to install and configure OAuth.
2. Once OAuth has been configured, go to admin/config/services/twitter/post and select from which
   node types a user may post to Twitter and the default message.
3. Verify permissions at admin/people/permissions.
4. Add a Twitter account and try to edit or post content.

How to sign in with Twitter
===========================
Existing and new users can sign in with Twitter by enabling the twitter_signin module. The following scenarios are being contemplated so far:

* A visitor logs in with his Twitter account and, once authenticated at Twitter.com, he fills in
  his email in the Drupal registration form and receives an email to log in and set his account
  password.
* An existing user signs in with Twitter and then logs in into his Drupal user account. This results
  in the Twitter account getting related to the user account so next time Twitter sign in will work.
* An existing user with an already configured Twitter account can log in automatically by clicking
  on the Sign in with Twitter button.

File

README.txt
View source
  1. Introduction
  2. ============
  3. Twitter module allows listing tweets in blocks or pages. Its integration with Views opens the
  4. door to all sorts of formatting (ie. as an automatic slideshow with views_slideshow). It also
  5. provides useful input filters to easily link Twitter accounts and searches within text.
  6. Twitter's submodules allow posting to twitter, executing actions/rules when tweeting or login
  7. with a Twitter account.
  8. Installation
  9. ============
  10. Twitter's REST API library is out of the module. Although this needs an extra step on installation,
  11. it makes the library reusable for both Drupal 6 and 6 versions and also other modules.
  12. To set it up, just download twitter.lib.php from https://github.com/juampy72/twitter-rest-php/downloads
  13. to your libraries directory (normally sites/all/libraries) so its final location is
  14. sites/all/libraries/twitter/twitter.lib.php
  15. To verify that it has been installed correctly, view the Status Report at
  16. http://yoursite/admin/reports/status.
  17. OAuth
  18. =====
  19. OAuth module is required for all requests to the Twitter REST API 1.1.
  20. When you download the OAuth module, get the latest stable release available at http://drupal.org/project/oauth
  21. Once OAuth has been enabled, go to admin/config/services/twitter and follow instructions in order
  22. to provide your Application keys.
  23. How to add a Twitter account to a Drupal user account
  24. =====================================================
  25. Read http://drupal.org/node/1253026 for details.
  26. How to use the username and hashtag input filters
  27. =================================================
  28. 1. Go to admin/config/content/formats.
  29. 2. Select the text format where you want to use the filters.
  30. 3. At "Enabled filters" check the Twitter converters.
  31. After that, clear cache and try to create a page with the following body:
  32. #drupal @drupal
  33. The above links to a search in Twitter over the #drupal tag and a to the @drupal profile.
  34. These filters are avilable when configuring a tweets Views.
  35. How to post to Twitter
  36. ======================
  37. 1. Read the OAuth section to install and configure OAuth.
  38. 2. Once OAuth has been configured, go to admin/config/services/twitter/post and select from which
  39. node types a user may post to Twitter and the default message.
  40. 3. Verify permissions at admin/people/permissions.
  41. 4. Add a Twitter account and try to edit or post content.
  42. How to sign in with Twitter
  43. ===========================
  44. Existing and new users can sign in with Twitter by enabling the twitter_signin module. The following scenarios are being contemplated so far:
  45. * A visitor logs in with his Twitter account and, once authenticated at Twitter.com, he fills in
  46. his email in the Drupal registration form and receives an email to log in and set his account
  47. password.
  48. * An existing user signs in with Twitter and then logs in into his Drupal user account. This results
  49. in the Twitter account getting related to the user account so next time Twitter sign in will work.
  50. * An existing user with an already configured Twitter account can log in automatically by clicking
  51. on the Sign in with Twitter button.