I don't know why I cant find this anywhere online, it should be simple. I'm trying to GET event details based on the (given) event id. I'm looking for event title, description, image, etc...

Does anybody know of a way to get these details with javascript? Facebook has posted this which I can't wrap my head around:

/* make the API call */
FB.api(
    "/{event-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
FB.api(
    "/{event-id}",
    function (response) {
      if (response && !response.error) {
        for( x in response )console.log( x + ": " + response[ x ] );
    }
);

than examine the log for properties returned by the event API and chose what you need.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.