Instead of:
$event_id = $fapi->events_create($event_info);
I think you want:
$event_id = $facebook->api_client->events_create($event_info);
adam
2010-01-03 20:01:13
Instead of:
$event_id = $fapi->events_create($event_info);
I think you want:
$event_id = $facebook->api_client->events_create($event_info);
The parameter to events_create()
needs to be a JSON-encoded string. Change this:
$event_id = $fapi->events_create($event_info);
to this:
$event_id = $fapi->events_create(json_encode($event_info));
I figured out this issue. It was because my database field was set to an int and unfortunately, the Facebook id's were too long. I just had to change the field type.