Search code examples
phpapieventsfacebook-graph-apiprivate

PHP API CReate Private Event


Hi Im trying to create private events from an App

I can create the invite, invite friends etc fine but i cant get the event to be created as private (invite only)

The params i use to create the event are

$event_param = array(
    "name" => "Event Name",
"start_time" => $nextWeek,
"location" => $where,
"privacy" => 'CLOSED',
"description" => $description
);

In the privacy option have tried 'PRIVATE', 'CLOSED' and 'SECRET' but all create a public event.

I have been granted the following permissions

user_about_me,
user_birthday,
read_friendlists,
publish_stream,
read_stream,
email,
create_event,
rsvp_event,
user_events,
friends_events

Any help appreciated

Thanks


Solution

  • The field for privacy settings called privacy_type (not privacy).