This section describes how to install the plugin and get it working.
- Upload the plugin files to the
/wp-content/plugins/my-custom-twitter-feed
directory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the 'Plugins' screen in WordPress.
- Use the Settings -> Ray Twitter Feeds -> Ray Social Feeds For Twitter Settings screen -> And click on the big blue button that says, "Generate Access Token & Secret". In the next screen, authorize our app to use your account. Once authorized, the access token & access token secret fields should automatically get filled for you. Now you are ready to display tweets on your site.
- Navigate to Customize tab and choose Feed Type as either "User Timeline" or "Mentions".
- Enter a "Twitter screen name" in the Screen Name field. This will only be used if User Timeline is selected as the Feed type.
- If Feed Type "Mentions" is select, then Mentions timeline is set as the default feed type.
- For the Include Media in Search field, provide your preference for Photos or Videos, or both, by clicking on either Include Photos or Include Videos. You can also select both.
- Check the Exclude Replies checkbox to exclude Replies from fetched Tweets.
- Check the Include Retweets checkbox to include Retweets in your feed.
- In the Number of Tweets field, enter the number of tweets to fetch from Twitter.
- For Check Tweets Every field, you need to need either hour or day.
- For the Tweet Checking Interval field, enter a numeric value.
- Points 11 & 12 in combination decide the cache duration for fetched tweets.
Generating Access Token & Secret
- In our plugin settings page, simply click on the prominent "Generate Access Token & Secret" button.
- You will be redirected to Twitter and presented with a Authorization screen.
- Click on the "Authorize" button. Make sure you are logged in to the Twitter account you want to use with our plugin during authorization.
- You will then be redirected back to your plugin page. The "access token" and "access token secret" field should be filled in automatically by this time.
- The plugin is ready to fetch tweets now.
Note: Our plugin does NOT require you to create a Twitter developer account and create a Twitter app.
However, if you happen to have your own API keys, you are free to use them with our plugin.