views:

59

answers:

0

Hi,

I am trying to create a Facebook event using RESTful API Events.create method with the following parameters:

event_info = {"name":event_name,
              "category":event_category,
              "subcategory":event_subcategory,
              "host":event_host,
              "city":event_city,
              "location":event_location,
              "start_time":event_start_epoch,
              "end_time":event_end_epoch,
              "description":event_description,
              "privacy_type":event_privacy
             } 

fbParams = {'method': 'Events.create', 
            'event_info': event_info,
            'session_key':fb_session,
            'api_key':settings.API_KEY,
            'call_id': time.time(),
            'v':'1.0',
            'format':'json'
            'sig': paramHash
           }

But I get back error 100 with message "event_info parameter: array expected."

Any idea what's wrong with event_info format?

Thank you in advance, Dasha