Title: Plugin name: SFCe Create Event
Author: roggie
Published: <strong>11 d'agost de 2010</strong>
Last modified: 15 de febrer de 2012

---

Cerca extensions

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

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

# Plugin name: SFCe Create Event

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

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

 * [Detalls](https://ca.wordpress.org/plugins/sfce-create-event/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/sfce-create-event/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/sfce-create-event/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/sfce-create-event/#developers)

 [Suport](https://wordpress.org/support/plugin/sfce-create-event/)

## Descripció

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)

## Captures

[⌊Section added to "New Post" and "Edit Post" to supply details about your event.⌉⌊
Section added to "New Post" and "Edit Post" to supply details about your event.⌉[

Section added to «New Post» and «Edit Post» to supply details about your event.

[⌊Settings page.⌉⌊Settings page.⌉[

Settings page.

## Instal·lació

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.

## PMF

**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

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

«Plugin name: SFCe Create Event» és programari de codi obert. La següent gent ha
col·laborat en aquesta extensió.

Col·laboradors

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

[Traduïu «Plugin name: SFCe Create Event» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/sfce-create-event)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/sfce-create-event/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/sfce-create-event/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/sfce-create-event/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/sfce-create-event/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

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

## Meta

 *  Versió **4.00.2**
 *  Darrera actualització **fa 15 anys**
 *  Instal·lacions actives **10+**
 *  Versió del WordPress ** 2.7 o posterior **
 *  Provada fins a **3.3.2**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/sfce-create-event/)
 * Etiquetes
 * [create](https://ca.wordpress.org/plugins/tags/create/)[Event](https://ca.wordpress.org/plugins/tags/event/)
   [facebook](https://ca.wordpress.org/plugins/tags/facebook/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/sfce-create-event/advanced/)

## Valoracions

 5 sobre 5 estrelles.

 *  [  1 valoració de 5 estrelles     ](https://wordpress.org/support/plugin/sfce-create-event/reviews/?filter=5)
 *  [  0 valoracions de 4 estrelles     ](https://wordpress.org/support/plugin/sfce-create-event/reviews/?filter=4)
 *  [  0 valoracions de 3 estrelles     ](https://wordpress.org/support/plugin/sfce-create-event/reviews/?filter=3)
 *  [  0 valoracions de 2 estrelles     ](https://wordpress.org/support/plugin/sfce-create-event/reviews/?filter=2)
 *  [  0 valoracions de 1 estrelles     ](https://wordpress.org/support/plugin/sfce-create-event/reviews/?filter=1)

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

[Visualitza totes les ressenyes](https://wordpress.org/support/plugin/sfce-create-event/reviews/)

## Col·laboradors

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

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/sfce-create-event/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](http://www.rogerh.com/donate.html)