Linux 软件免费装

Facebook Pictures

开发者 nbadano
更新时间 2013年5月8日 22:31
PHP版本: 3.3 及以上
WordPress版本: 3.5.1
版权: GPLv2 or later
版权网址: 版权信息

标签

facebook photos albums facebook pictures open graph api

下载

详情介绍:

Facebook Pictures allows you to include albums and embed pictures from your Facebook account into your site. You'll need a Facebook App ID and Secret, that you can create for free on Facebook's Developer Page. Facebook Pictures takes your latest 5 albums and selects the most liked and commented pictures from them. You can choose how many pictures you want to pull using the widget options. Albums works in a similar way, but only the most recently updated ones are pulled. You can embed pictures from both your personal Profile and any Pages you manage.

安装:

  1. Install either via the WordPress.org plugin directory, or by uploading the files to your server.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Create a new Facebook App using Facebook's Developer Page. Make sure you enter your website as the App's domain page.
  4. Enter your newly created App ID and App Secret in the plugin's settings page (Settings -> Facebook Pictures)
  5. Link your Facebook Account. You'll be asked for permissions on Facebook.
  6. You are all set! Find the Facebook Pictures widget under Appearance -> Widgets, drag it into your sidebar or any widgetized area and select how many pictures or albums you want to display.

屏幕截图:

  • Admin Panel Settings
  • An example of how the widget would look like in your sidebar. Two pictures are being pulled.

常见问题:

Can I use Facebook Pictures on my template?

Sure you can. You'll have to use the global variable $fbdata and call either the $fbdata->get_pictures($amount, $offset) method for pictures or $fbdata->get_albums($amount) for albums. This will return an array containing the data, that you can display and style as needed.

Will this plugin slow down my page?

It really depends on how many pictures you have on your Facebook account: the more pictures, the more it takes Facebook to give us the information we need. In any case, data is stored on your site for 24 hours, so worst case scenario you'll see a load delay on one pageview every day.

更新日志:

0.1