PHP SDK & Graph API base Facebook Connect Tutorial | Mahmud Ahsan

In this article I’m focusing facebook latest php sdk to integrate facebook features in your site. Some days ago facebook released their new graph api system and updated their core structure. They also officially released php sdk so that you can easily call facebook latest graph api and old legacy api from server side by php. Before proceeding first have a look my previous article specially Facebook connect authentication part. In this post I’ll show How to check valid session of user, if user successfully logged in How to call graph api How to call legacy api How to update status dynamically using graph api How to use FQL Query So take a look my demo of this tutorial. Please login by FBConnect and approve all the permission if you’re first time accessing the page. Updated Tutorial Follow this post based on PHP SDK 3.0 by Facebook and skip current post. STEP 1: First download the php sdk libary from here . Now copy the facebook.php from /src/ to your project dir. STEP 2: Create a file named fbmain.php. A

2 May 2010 ... First update $fbconfig array by your application's id, api key and secret key. In the code you'll see I included facebook.php by include_once. If ...

Lee mas