Facebook’s Graph API simplifies the exchange of user data with the Facebook servers. An app can inquire about user’s private information including feeds, comments and likes, see his connections with friends, and do lot more stuffs in easy steps.

Using Graph API, a Facebook app can also make post on user’s wall after getting permission.

Today we build Facebook application that post on user’s wall by making HTTP POST request to Graph API.

1. Get User Authentication

First we need to get user authentication with permission to post updates on his behalf [publish_stream permission].

That’s all! In the example, an alert will show up when update is posted successfully.

Unlike us, most applications on Facebook make the same HTTP POST Request using JavaScript SDK. JavaScript SDK is a bulk sized file which can make an app slow. Slow Facebook apps often throw CurlException which can render an app unusable.