title: Getting list of events from page with Facebook API (Javascript SDK)
body: <p>It seems I am unable to retrive the events from a Facebook page. I have done this with photo albums (from the same page) and it works excellent. After I load the API and everything I use this function to get the events and display them:</p>
  
  <pre><code>function getAlbums() {
          FB.api('/___PAGE___/events', function (resp) {
              if (resp.data !== undefined) {
                  for (var i = 0, l = resp.data.length; i &lt; l; i++) {
                      var event = resp.data[i];
                      // process events here...
                  }
              }
              else 
              // no events handle             
          });
      }
  </code></pre>
  
  <p>It goes straight to the handle for 0 events, meaning this is true: resp.data == undefined. So I am not getting any data from the Facebook. Couldn't find any solutions to it as other mostly came accross PHP and FQL, which I cannot use here. I eed to be able to display events no matter if the user is logged in or not.</p>
  
  <p>Help is greatly appreciated!</p>