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. #1 by on April 24, 2016 - 3:25 pm

    With regard to the fuel consumption figures which we’ve to cite on our
    advertising and marketing materials, this is a normal EU check which has to be undertaken by all
    manufacturers and might not be representative of actual world driving situations.

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

%d bloggers like this: