title: Display Facebook Event Page On Website with PHP
body: <p>I would like to display the events from a clients Facebook page on their website. I've spent hours searching for this, and I've found several solutions, but they seem to all point to an older version of Facebook's API. </p>
  
  <p>I was able to find some info on Facebook's site itself, but unfortunately I'm not a very skilled PHP programmer, nor am I familiar with Facebook's API and so I can't seem to figure it out. Here's Facebooks page explaining their API concerning Events: <a href="https://developers.facebook.com/docs/graph-api/reference/v2.0/event" rel="nofollow noreferrer">https://developers.facebook.com/docs/graph-api/reference/v2.0/event</a></p>
  
  <p>Also, here's a reference to a stackoverflow post that addresses my issue, but appears to be for an older version of Facebook's API: <a href="https://stackoverflow.com/questions/7971990/display-a-public-facebook-event-on-a-web-page">Display a public Facebook event on a web page</a></p>
  
  <p>oliakaoil suggested that I give an example, so here's one of the things I tried, which didn't work. </p>
  
  <pre><code>&lt;?php 
  require '/home/diamonds/public_html/facebook/';
  $fb = new Facebook(array(
         'appid'=&gt;'Your-AppID',
         'secret'=&gt;'Your-AppSecret'
        ) );
  $page_events = $fb-&gt;api('/ikeausa/events', 'GET');
  printf ('&lt;pre&gt;%s&lt;/pre&gt;', $page_events);
   ?&gt;
  </code></pre>
  
  <p>My problem comes with referencing the Facebook SDK, and if I ever got past that, the other code might not work either. I've uploaded the newest Facebook SDK, but I can't figure out how to reference it properly. It appears that the old SDK might have been a simple single page "Facebook.php", but on the newer SDK, it's a folder full of a bunch of php files. If it was one file, I think I could figure out how to reference it, but I don't know enough to figure out how to reference the whole folder full of files. Also, even if I did know how to reference it, I'm not sure I'd know how to use the properties right.</p>
  
  <p>Unfortunately, I'm pretty much a beginner in this area, so what I could really use is an example of how to do it. It seems like something that a lot of people would have wanted to do, and so it would seem that there would be an example out there somewhere. Whenever, I go to look for examples, though, they all seem to be code for the old SDK. It's a recurring problem I've had with a lot of code I've looked for. Google seems to preference old out-of-date results and it makes it hard to find relevant up-to-date answers. </p>