Title: Plugin name: SFCe Create Event
Author: roggie
Published: <strong>2010 年 8 月 11 日</strong>
Last modified: 2012 年 2 月 15 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/sfce-create-event.svg)

# Plugin name: SFCe Create Event

 作者：[roggie](https://profiles.wordpress.org/roggie/)

[下载](https://downloads.wordpress.org/plugin/sfce-create-event.zip)

 * [详情](https://cn.wordpress.org/plugins/sfce-create-event/#description)
 * [评价](https://cn.wordpress.org/plugins/sfce-create-event/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/sfce-create-event/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/sfce-create-event/#developers)

 [支持](https://wordpress.org/support/plugin/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](http://www.thehypervisor.com/simple-facebook-connect-extensions)

[Follow me on Facebook</a href>](http://www.facebook.com/home.php?sk=lf#!/pages/The-Hypervisor/114689115238103)

[Follow me on Twitter</a href>](http://twitter.com/thehypervisor)

## 屏幕截图

 * [[
 * 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」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ roggie ](https://profiles.wordpress.org/roggie/)

[帮助将「Plugin name: SFCe Create Event」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/sfce-create-event)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/sfce-create-event/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/sfce-create-event/)，或通过[RSS](https://plugins.trac.wordpress.org/log/sfce-create-event/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/sfce-create-event/)。

## 更新日志

Click this link to see the [changelog](http://www.thehypervisor.com/simple-facebook-connect-extensions).

## 额外信息

 *  版本 **4.00.2**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **3.3.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/sfce-create-event/)
 * 标签
 * [create](https://cn.wordpress.org/plugins/tags/create/)[Event](https://cn.wordpress.org/plugins/tags/event/)
   [facebook](https://cn.wordpress.org/plugins/tags/facebook/)
 *  [高级视图](https://cn.wordpress.org/plugins/sfce-create-event/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/sfce-create-event/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/sfce-create-event/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/sfce-create-event/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/sfce-create-event/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/sfce-create-event/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/sfce-create-event/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/sfce-create-event/reviews/)

## 贡献者

 *   [ roggie ](https://profiles.wordpress.org/roggie/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/sfce-create-event/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.rogerh.com/donate.html)