這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Plugin name: SFCe Create Event

外掛說明

This plugin creates events in personal Facebook profiles and Facebook Pages.

Version 4.x is a major re-write to work with Facebook’s new Graph API. It requires Otto’s Simple Facebook Connect plugin v 1.x. You must configure SFC’s Publisher module, which is used by SFCe to publish events to Facebook.

To create a Facebook event with this plugin, create or edit a post, scroll down the page to the Create Facebook Event section.

Provided the WordPress user account has been “Connected to Facebook” using the SFC plugin, they will see a form that will allow them to create an event in their Facebook profile or your Facebook Page. Fill in the event title and start time, tick the Create Public Facebook Event box and Update or Publish the post. If the WordPress user is not “Connected to Facebook” they will see a warning message and not see the form. The plugin handles Facebook security properly. The first time someone uses this plugin on your WordPress site, Facebook may ask the WordPress user to authorize this plugin.

SFCe can populate the event with data from the WordPress post – e.g. the post title etc, and SFCe can be configured with default values for many Facebook event parameters. WordPress site admins can configure SFCe to enforce default values or let users override them.

Example: We use this plugin to automatically create public Facebook events for our fan page when certain types of post are published. We also use it to create private Facebook events when other types of post are published.

Changelog

Follow me on Facebook</a href>

Follow me on Twitter</a href>

螢幕擷圖

  • Section added to "New Post" and "Edit Post" to supply details about your event.
  • Settings page.

安裝方式

This plugin requires Otto’s Simple Facebook Connect (SFC) plugin is also installed in your WordPress site. Otto’s SFC is an excellent set of plugins for integrating Facebook with your WordPress site. Unfortunately Otto’s SFC does not create Facebook Events. However, this plugin is designed and tested to work with Otto’s SFC, so if you want to create Facebook events from your WordPress blog, install Otto’s SFC and this plugin.

  1. Install and configure Simple Facebook Connect by Otto.
  2. Ensure your WordPress account is ‘connected’ to your Facebook account using Otto’s Simple Facebook Connect.
  3. Unzip the sfce-create-event.zip in your WordPress plugins directory.
  4. Login to WordPress as an administrator, go to Plugins and Activate SFCe Create Events.
  5. Configure Otto’s SFC to publish events to Facebook.
  6. Create or edit a Post, scroll down and use the Create Facebook Events section to supply information about your Facebook event.

常見問題集

I can’t create events with this plugin.
You must install and configure Simple Facebook Connect (SFC), a separate WordPress plugin by Otto. For version 4.x of SFCe you need version v1.x of SFC.

I get an error message about no Access Token.
You must configure Otto’s SFC plugin’s Publisher module to allow it to publish events to Facebook. Make sure you have granted SFC permission “Automatic Publishing” and “Extended Permissions” in the “Publish Settings” section of the SFC settings page.

“Warning: include_once() [function.include]: Failed opening ‘[path]/wp-content/plugins/simple-facebook-connect/facebook-platform/facebook.php’
You are using version 1.x of Otto’s SFC plugin with version 3.x of SFCe. Either downgrade SFC or upgrade SFCe.

I can’t add a photo to my events.
The old Facebook API allowed you to upload a photo for your event, the new Graph API does not. Please contact Facebook and ask them to provide this feature and documentation. You could also downgrade to SFCe 3.x and SFC 0.x, which use the old Rest API.

I want to create an event using this plugin but without filling in the form on my Edit Post page. How do I create an array containing the event date/time etc?
There are several methods of doing this. We use the one below. Please note, in this example we pass some parameters as literal text (e.g. end_min). We pass other parameters as PHP variables (e.g. end_hour). And others we pass as data obtained from an HTML form (e.g. month):

if (function_exists(‘sfce_create_event’)) sfce_create_event( array(
‘name’ => $name,
‘description’ => $fbdescription,
‘host’ => $host,
‘post_id’ => $post_id,
‘tagline’ => ‘Let\’s Skate Together!’,
‘is_fanpage’ => TRUE,
‘privacy’ => ‘OPEN’,
‘timezone’ => ‘Europe/London’,
‘day’ => $_POST[‘eday’],
‘month’ => $_POST[’emonth’],
‘year’ => $_POST[‘eyear’],
‘start_hour’ => $start_hour,
‘start_min’ => ’45’,
‘end_hour’ => $end_hour,
‘end_min’ => ’00’)
);

Note: Many parameters are optional, see the Facebook documentation (below) for a list of the required parameters.

Where is the Facebook documentation for creating events in this way?
http://wiki.developers.facebook.com/index.php/Events.create

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Plugin name: SFCe Create Event〉的開發相關工作。

參與者

將〈Plugin name: SFCe Create Event〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

Click this link to see the changelog.