JFacebookUser::createEvent
Method to create an event for a user. Requires authentication create_event permission.
Signature
public function createEvent(mixed
$user,
[string
$name = null,
[string
$start_time = null,
[string
$end_time = null,
[string
$description = null,
[string
$location = null,
[string
$location_id = null,
[string
$privacy_type = null]]]]]]] )
Parameters
-
$user
- Either an integer containing the user ID or a string containing the username.
-
$name
- Event name.
-
$start_time
- Event start time as UNIX timestamp.
-
$end_time
- Event end time as UNIX timestamp.
-
$description
- Event description.
-
$location
- Event location.
-
$location_id
- Facebook Place ID of the place the Event is taking place.
-
$privacy_type
- Event privacy setting, a string containing 'OPEN' (default), 'CLOSED', or 'SECRET'.
Returns
- mixed
- The decoded JSON response or false if the client is not authenticated.