I am trying to create an event via a facebook page. I have given the page id and create_event permission. Yet my event is not getting posted. I keep getting this
[message] => (#100) Invalid parameter
[type] => OAuthException
[code] => 100
I am using the following coding which was posted in these forums
$page_id='xxxxx';
$event_info = array(
'name' => 'abc event',
'description' => 'hi dis s an event',
'owner' => 'eric example',
'location' => 'Location name and street',
'city' => 'chennai',
'start_time' => date('Y-m-d H:i', time()),
'privacy_type' => 'OPEN' );
$event_id = $facebook->api('/'.$page_id.'/events', 'post', $event_info);
I figured it out… I made a mistake in specifying the time