Gettting facebook events in php and curl

Facebook has the feature to add events in fanpages. So you want to display all the upcoming events in your own website. The immediate answer is use facebook widget to display the events in facebook style. But if you want to display it in your website’s custom style. Here I come with a solution for that to fetch all the facebook page events using php and curl to your website’s custom page

You may have noticed in this example I did not use the access_token, a must have for facebook graph api call. But this is an alternative way when pulling the details that does not require any kind of authenication. You can pass this in the format of app_id|app_secret

Editorial Staff
 

Editorial Staff at tutsplanet is a dedicated team to write various tutorial articles.