Posts Tagged Library

How to make a Facebook Application

This article will help the reader to develop a simple Facebook application.

Facebook is almost everywhere in the world.

Getting Started

In order to make your own Facebook application, you need a Facebook account and Developer application installed in your account. This allows to you create your own Facebook applications. You will also need your own server space for hosting your app but If you don’t have you can get space from Facebook’s partner Heroku. We will be using PHP for the example below.


In this example we are making our own simple application. This is the code we have to add in the index.php page:

 require_once 'facebook.php';
 $appapikey = 'xxxxxxx';
 $appsecret = 'xxxxxxxx';
 $facebook = new Facebook($appapikey, $appsecret);
 $user_id = $facebook->require_login();

Replace the API Key and the Secret key in index.php with real values. After replacing it, add this HTML content to the below of ?> of index.php file:

 <a href="">
 <img src=""/></a>
 <a href="">
 <img src=""/></a>
<form method="get" id="searchform" action="">
 <input type="text" name="s" size="20" id="searchbox" />
 <input type="submit" value="Search" />

After adding this content your app will turn into a search app for articles on my blog TechInUs.

Areeb Majeed is the CEO and Founder of HackingTag Security. He writes for his blog TechInUs.

, , , , , ,

1 Comment