Creating events in facebook using Facebook.NET 2.0
-
Hello Has anybody worked in Facebook.NET 2.0 and created events using the function events.create()? Well, I am getting the exception "Invalid Parameter" while using it. (Declarions & authentication skipped)
Dim NewEvent As New Facebook.Schema.facebookevent() NewEvent.name = "ThroughCode" NewEvent.event_type = "1" 'Also tried "Party" NewEvent.event_subtype = "1" 'Also tried "Birthday Party" NewEvent.host = "tony" NewEvent.location = "Sabha" NewEvent.start_date = StartDt.Date NewEvent.start_time = 1215929150 NewEvent.end_date = EndDt.Date NewEvent.end_time = 1215929160 NewEvent.description = "SDFSDF" Dim CreateEvtStatus As Long = events.create(NewEvent)
I have also tried giving venue details as follows:Dim loc As Facebook.Schema.location = New Facebook.Schema.location() loc.city = "Bombay" loc.country = "India" loc.state = "Maharashtra" loc.zip = "400001" NewEvent.venue = loc
But no chance!!!