title: Displaying Facebook Events on website with javascript or jquery
body: <p>I am using the facebook SDK for javascript. I have take the sample code and in the browser console I can see that I am retrieving the data correctly</p>
  
  <pre><code>index.html:377 API response 
  Object {data: Array[7], paging: Object}
  data: Array[7]
  0: Object
  description: "This is just an event"
  id: "1631011590449872"
  name: "Event Testing"
  __proto__: Object...
  </code></pre>
  
  <p>but I am having a horrible time figuring out how to display the data via javascript / jquery on the web page. I have seen examples of php but I would rather attempt this in javascript / jquery.</p>
  
  <p>Here is the script where I go and get the data</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
    $.ajaxSetup({ cache: true });
    $.getScript('//connect.facebook.net/en_US/sdk.js',function(){
  
  
          FB.api(
            '/xxx/events
  access_token='xxxxxxx',
            'GET',
            {fields: "name,description"},
            function(response) {
                console.log('API response', response);
                $("#name").append(response.name);
                $("#description").append(response.description);
                }
          );
    });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I would appreciate if anyone could assist in just an example of code that loops thru all the events and displays the event name and description.</p>
  
  <p>Thank you</p>