Linux 软件免费装

Plugin Name

开发者 fossasia
更新时间 2016年8月29日 21:28
PHP版本: 3.5.1 及以上
WordPress版本: 4.5.3
版权: GPLv2 or later
版权网址: 版权信息

标签

widget sidebar twitter tweets api rest oauth loklak loklak api

下载

1.0 1.0.1

详情介绍:

Use anonymous Loklak API OR Connect your Twitter account to this plugin and the widget will display your latest tweets on your site. This plugin is compatible with the new Twitter API 1.1 and provides full OAuth authentication via the Wordpress admin area.

安装:

  1. Unzip all files to the /wp-content/plugins/ directory
  2. Log into Wordpress admin and activate the 'Tweets' plugin through the 'Plugins' menu
Once the plugin is installed and enabled you can use Loklak API or bind your plugin to a Twitter account as follows: Use Loklak API
  1. Tick the 'Loklak API' checkbox in API authentication settings.
  2. Click on 'Save settings'
OR Use Twitter 1.1 API
  1. Register a Twitter application at https://dev.twitter.com/apps
  2. Note the Consumer key and Consumer secret under OAuth settings
  3. Log into Wordpress admin and go to Settings > Twitter API
  4. Enter the consumer key and secret and click 'Save settings'
  5. Click the 'Connect to Twitter' button and follow the prompts.
Once your site is authenticated you can configure the widget as follows:
  1. Log into Wordpress admin and go to Appearance > Widgets
  2. Drag 'Tweets' from 'Available widgets' to where you want it. e.g. Main Sidebar
  3. Optionally configure the widget title and number of tweets to display.

屏幕截图:

  • Tweets rendered via Loklak API
  • Admin screen shows Loklak and Twitter API connect button and OAuth settings
  • Widget screen shows feed options

常见问题:

How can I style the widget?

See the 'Other Notes' tab for theming information.

Do I have to register my own Twitter app?

Yes, if you want to use Twitter's new API 1.1 . If you decide to use loklak.org's anonymous API then no need. More info in the 'Description' tab.

How I do know what my Twitter OAuth settings are?

These details are available in the Twitter dashboard

What do I put in the third and fourth fields?

Once you've populated the first two fields, just click the Connect button and follow the prompts.

What is the "Minimum popularity" field?

Here you can specify a number of retweets and favourites that a tweet must have before it's displayed. This is useful for only showing your most interesting content.

How can I prevent SSL certificate errors?

If you're unable too fix your PHP cURL installation, you can disable SSL verification of twitter.com by adding this to your theme functions.php:\ add_filter('https_ssl_verify', '__return_false');\ But, please do so at your own risk.

更新日志:

1.0.1 1.0