Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8792507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:59:16+00:00 2026-06-13T22:59:16+00:00

I am trying to create an event in my app but keep getting this

  • 0

I am trying to create an event in my app but keep getting this ‘Invalid parameter’ error:

(OAuthException - #100) (#100) Invalid parameter

when it hits:

JsonObject result = facebookClient.Post("/me/events", createEventParameters) as JsonObject;

Changed the parameters several times but still no help, anyone can advice:

   public string CreateEvent()
    {
            var accessToken = accessTok;
            FacebookClient facebookClient = new FacebookClient(accessToken);
            Dictionary<string, object> createEventParameters = new Dictionary<string, object>();
            createEventParameters.Add("owner", "Me");
            createEventParameters.Add("name", "Test Event");
            createEventParameters.Add("description", "This is a test event.");
            createEventParameters.Add("start_time", DateTime.Now.AddDays(2).ToUniversalTime().ToString());
            createEventParameters.Add("end_time", DateTime.Now.AddDays(2).AddHours(4).ToUniversalTime().ToString());
            createEventParameters.Add("location", "A Street");

            // Sample venue
            JsonObject venueParameters = new JsonObject();
            venueParameters.Add("street", "19 Phipps St");
            venueParameters.Add("city", "Toronto");
            venueParameters.Add("state", "ON");
            venueParameters.Add("zip", "L2A 2V2");
            venueParameters.Add("country", "Canada");
            venueParameters.Add("latitude", "43.6654507");
            venueParameters.Add("longitude", "-79.38569580000001");
            createEventParameters.Add("venue", venueParameters);

            createEventParameters.Add("privacy", "SECRET");
            createEventParameters.Add("updated_time", DateTime.Now.ToString());

            //Add the event logo image
            FacebookMediaObject logo = new FacebookMediaObject()
                                           {
                                               ContentType = "image/png",
                                               FileName = @"D:/Downloads/bb.png"
                                           };
            logo.SetValue(File.ReadAllBytes(logo.FileName));
            createEventParameters[@"D:/Downloads/bb.png"] = logo;

            JsonObject result = facebookClient.Post("/me/events", createEventParameters) as JsonObject;
            return result["id"].ToString();
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:59:17+00:00Added an answer on June 13, 2026 at 10:59 pm

    Ok happens that I have an invalid date format. For FB docs:

    NOTE – After the ‘Events Timezone’ migration, all event times are ISO-8601 formatted strings; they can no longer be specified as timestamps. The following formats are accepted:

    Date-only (e.g., ‘2012-07-04’): events that have a date but no specific time yet.
    Precise-time (e.g., ‘2012-07-04T19:00:00-0700’): events that start at a particular point in time, in a specific offset from UTC. This is the way new Facebook events keep track of time, and allows users to view events in different timezones.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create an event through the Facebook Graph API and I keep
I've been trying to create a generic event. Basically it should look like this:
I am trying to create a custom event for my model but apparently the
Trying to create a Django app based off the tutorial but using a different
I am trying to create new Event objects to be persisted in the database
Im trying to create an ajax (post) event that will populate a table in
I have a database with event names and dates. I am trying to create
I'm trying to catch a double-click event in a TreeView's empty area to create
I am trying to create a simple app for the iPad that with play
I'm trying to create an app that generates a tone depending on where you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.