IMPORTANT: Both Crowdmap "Classic" and Ushahidi users will need to make this change to use Twitter with your map project.
To have your deployment pull tweets based on hashtag/s, you will need to set up your deployment as an application on twitter.
Steps
- Sign in on https://dev.twitter.com/ with your twitter username and password
- Once signed in, on the right-hand side, click on your profile picture, you will get a drop-down , select the “My Applications” link.
- On the next page, click on “Create a new application”
- Fill in the application details
- Name – this can be your deployment/site name e.g Uchaguzi
- Description – this is your deployment/site description – what your deployment does
- Website – this is your deployment url/link i.e http://yourdeployment
- Callback url – this one leave it blank.
- After creating the application, you will get some of your authentication details but you are not yet done, on the same page click on the "API Keys" tab. Here you will need to generate your access tokens. To do this click on "create my access token" button. The tokens will take a few minutes to be generated, you can refresh the page after a few minutes to see them.
- After all the hoops, click on "Test OAuth" on the top right corner of the page to get all the information for your twitter application. These include CONSUMER KEY,CONSUMER SECRET, ACCESS TOKEN, ACCESS TOKEN SECRET.
- Go back to http://yourdeployment/admin/settings/twitter and key in those details. In addition, add the hashtags you want to pull tweets from and hit on “save settings”. Leave the rest of the magic to happen, your tweets will display on http://yourdeployment/admin/messages/twitter.
16 Comments
Hide/Show CommentsXaver Inglin
I did the config as described but still get access error when testing twitter access.
any hints?
Angela Oduor Lungati
Hi Xaver,
Some changes were recently made, to fix this error. If you're running on a self hosted deployment, pull in this commit, and you should be ok.
https://github.com/ushahidi/Ushahidi_Web/commit/2dcdc8756cae5baff80fa362929626badf59fb05
Best,
Angie
ignas
Cannot see Twitter Settings self hosted deployment in Admin Settings?
Angela Oduor Lungati
Hi Ignas,
If you're running v2.7, you should find these at admin/settings/twitter
Angie
ignas
Thank you for quick answer,
updated to 2.7, added the oauth settings,
fixed the test bug with the github code, so I get success at the test.
now with my hashtags, I dont get any messages, any clues?
Angela Oduor Lungati
Check in admin/messages/index/3
You may need to force run the scheduler, as it runs when the homepage is hit. The scheduler is what pulls in feeds from your different media streams.
Angela
ignas
I visit the homepage multiple times, and check the twitter message section still no luck,
I am tweeting from a new twitter account
any other way to debug this?
Angela Oduor Lungati
Try force running the scheduler via admin/manage/scheduler and check again
ekhlas
before I Do all above listed changes .. i set site default location From kenya to India.. mention it.
i do this .. but no luck baby Angle
ignas
working thank you
Chile Movilizado
HI.
We have created chilemoviliza2.crowdmap.com, and followed all the steps written supra.
Even though, we get an error message after clicking "test settings". We went to the link in github, but cannot manage to use the info there.
Should we change some settings in the crowdmap dashboard, should we edit source code somewhere?.
Thanks
Sharon Rutto
Hi, you cannot access the source code from crowdmap as we host the files for you. You should however still be able to pull in tweets regardless of the error. The fix on GitHub will be pushed to crowdmap soon to do away with the error.
Samul Wong
Hi,
I am so happy to know ushahidi, which can share the info via twitter.
Before to install it allow me to ask if the system is support other 3rd party SNS website beside twitter? E.g. Weibo.com in China?
Great thanks!
ekhlas
Hi,
I Set all above listed process and see all related comment.. but i cant see any message in My url "admin/messages/index/3" .. I also do to force the schedular process but not getting any differences in it...
Plz help me... I tried to do again and again
Reply soon as possible.... Please.. Friends
Sharon Rutto
Hi ekhlas, kindly open an issue for this on our GitHub repo here: https://github.com/ushahidi/Ushahidi_Web/issues/new. You can also post it on our forums here: https://forums.ushahidi.com/. We'll be sure to respond. Thanks!
Yingge
Is it a way to export the tweets that pulled by Ushahidi? I have set up the twitter on my deployment. Tweets are coming in, a lot. Is it a way that I can download them so I can process them and then re-upload them as .csv reports?