phpResource – My First Facebook Application

Today I developed a simple facebook application that reads and parses RSS from phpResource. It’s my first one during the first touch of facebook platform. See my first app here:

It’s very easy to add a facebook app. I want to share how easy it was to add an app in facebook. If you did not work on facebook app but want to develop your first one in an hour, here is a summary of working steps for you that will help you move very easily:

1. Go to and download a client library. I downloaded PHP (4 and 5) client library.
So you have the “facebook-flatform” files(extracted from facebook-flatform.tar.gz) to work on. I put the files into a dir named “facebook” (renamed dir “facebook-platform” to “facebook”) in my web server.

2. Add facebook developer application (go to and see option to setup application). You will be given an app secret key and an api key. Note that these keys are very important.

3. Go to and read and follow their easier guidelines.

4. While you are following the guidelines as per step 3, you need to put value in “Callback Url” field. It’s the URL where you worked with “facebook-platform” files. For my case, it’s the “facebook” dir where I put the platform files. Before you put the callback URL, you need to do the following:
– write the sample code (into a file under platform dir “client”) provided in, don’t forget to use your key credentials. Say your filename is abcd.php
– write your target script which goes below the initial codes guided by For my case, it was like following:


require_once 'appinclude.php';

echo “<p>”;
require_once ‘phpresource.php’;
echo “</p>”;


where phpresource.php has its own output. You can see it here:

Now you know what to put as the callback URL. It’s like, for my case it should be like: (as I renamed “facebook-platform” to “facebook”).Save the settings and see your app URL. You are DONE!!

I will share more in future.




3 thoughts on “phpResource – My First Facebook Application

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.