-
Notifications
You must be signed in to change notification settings - Fork 11
Using TweetYourMEP for your own campaign
Alberto Cottica edited this page Feb 26, 2017
·
6 revisions
You can pre-load TweetYourMEP with your own favourite message, then reach out to people and ask them to quickly and easily tweet it to their MEPs from their own account. This is done by changing just two lines of code. Of course, your pre-loaded tweet is just a suggestion: your user will be tweeting from her own account, and she will be able to change the tweet at will.
- After installation, use an editor to open the
config.js
file. - Go to line 19, and insert your pre-loaded tweet in the variable
twitter_texts
. The syntax of the line should betwitter_texts: ["Your tweet goes here"],
- Go to line 21, and insert your hashtag in the variable
twitter_hashtags
. The syntax of the line should betwitter_hashtags: ["Your hashtag"],
A Twitter user need only use the application to find her MEP. Clicking on the "Tweet" button underneath the MEP's avatar she should see something like this:
Please note that simply inserting the hashtag in the tweet's text will generate an error.
For further customization, you can change the content of the "About" page by editing the about.ejs
file. The text starts at line 80.