views:

531

answers:

4
A: 

Instead of:

$event_id = $fapi->events_create($event_info);

I think you want:

$event_id = $facebook->api_client->events_create($event_info);
adam
Well, $fapi is actually $fapi = $facebook->api_client;
Dhana
try it anyway, just to see
adam
it's still returning the same id with that change
Dhana
A: 

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));
zombat
Tried that too, event gets added successfully, but eventid is still the same
Dhana
A: 

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.

Dhana
A: 

Hi,

I want to create a facebook event in asp.net. Is anybody there who already done in asp.net.

Thanks,