Implementing Login With Facebook In PHP

In the last post, I introduced you to a PHP OAuth Class named OAuth API. In this post I’m going to tell you how to implement Login With Facebook feature in PHP using the class I introduced. It’s very simple. I will tell the ways of implementing step by step. This tutorial includes placing a Login with Facebook button on web site to authorization and finishes when we get user details.

[READ MORE]

Friendshood Update new feature – Post to Facebook

I updated Friendshood. The new feature is that the user can post status update and photos to Facebook along with posting in Friendshood. I implemented this function using Facebook PHP SDK. You can download the SDK here. It was not quite easy. It was hard to make Picture uploading function along with the normal status update. Next I’m gonna implement twitter posting from Friendshood. I’m gonna tell you how to post a status update in the following posts.

[READ MORE]

How to get Facebook PHP SDK and install it

Download Facebook PHP SDK from here. Extract the folder src in the zip file to a folder named fbsdk in the home directory of your app. Installation There is no installation. You can run the functions in the file if you put this line at top of each file you run the SDK functions : include(‘fbsdk/facebook.php’); Facebook SDK requires the following to work properly : JSON PHP extension. CURL PHP extension.

[READ MORE]