|
1 | 1 | ======================================
|
2 | 2 | Integrating Twitter Feed with Channels
|
3 |
| -====================================== |
| 3 | +====================================== |
| 4 | + |
| 5 | +.. image:: media/twitter_user-image.png |
| 6 | + :align: center |
| 7 | + |
| 8 | +A user can follow specific hashtags on twitter and see the tweets within the |
| 9 | +channels of his/her choice. The tweets are retrieved periodically from Twitter. |
| 10 | +An authenticated user can retweet the messages. |
| 11 | + |
| 12 | +Setting up the App on Twitter's side |
| 13 | +==================================== |
| 14 | + |
| 15 | +Twitter uses an "App" on its side which is opens a gate to which Odoo asks for |
| 16 | +tweets, and through which a user can retweet. |
| 17 | +To set up this app, go to http://apps.twitter.com/app/new and put in the values: |
| 18 | + |
| 19 | +- Name: this is the name of the application on Twitter |
| 20 | + |
| 21 | +- Website: this is the external url of your Odoo database, with "/web" added. |
| 22 | + For example, if your Odoo instance is hosted at "http://www.example.com", you |
| 23 | + should put "http://www.example.com/web" in this field. |
| 24 | + |
| 25 | +- Callback URL: this is the address on which Twitter will respond. Following the |
| 26 | + previous example you should write "http://www.example.com/web/twitter/callback". |
| 27 | + |
| 28 | +Do not forget to accept the terms **Developer agreement** of use and click on |
| 29 | +**Create your Twitter application** at the bottom of the page. |
| 30 | + |
| 31 | + |
| 32 | +Getting the API key and secret |
| 33 | +============================== |
| 34 | + |
| 35 | +When on the App dashboard, switch to the **Keys and Access Tokens** tab. |
| 36 | + |
| 37 | +.. image:: media/api_key.png |
| 38 | + :align: center |
| 39 | + |
| 40 | +And copy those values in Odoo in :menuselection:`Settings--> General Settings--> Twitter discuss integration` |
| 41 | +and click on **Save** to save the settings. |
0 commit comments