title: How to get all events from a facebook Page
body: <p>There are tons of StackOverflow answers about getting events from a facebook Page.<br>
  They all list a FQL query and I'm sure they all work great; but since I'm new to this I have no clue as to what context these queries are executed and how to even get far enough to use these queries.</p>
  
  <p>Getting all events from a facebook Page should be pretty trivial. There should probably be a complete copy+paste solution in every language but I haven't been able to find it.</p>
  
  <p>Ideally, I would like a step-by-step solution that works in javascript or C#.</p>
  
  <p>This is pretty much what I want to do and I see no reason why this shouldn't work on a public Page (but it doesn't):</p>
  
  
  
  
  
  <pre><code>&lt;script&gt;
      FB.init({
          appId: "196804317007661", // the appId for the website I registered with FB
          status: true, // check login status
          cookie: true, // enable cookies to allow the server to access the session
          xfbml: true  // parse XFBML
      });
      FB.api({
          method: "fql.query",
          query: "SELECT eid, name FROM event WHERE eid IN (SELECT eid FROM event_member WHERE uid = PublicPageIdGoesHere)"
      },
      function (response) {
          console.log(response);
  });
  </code></pre>
  
  <p></p>
  
  <p>So, anyone know of a plug-n-play way of getting this to work?</p>