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.

Example

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

<?php
 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:

  <p>
 <a href="http://utag.10.mx">
 <img src="http://utag.x10.mx/wp-content/uploads/hts%20png.png"/></a>
</p>
<p>
 <a href="http://utag.10.mx">
 <img src="http://utag.x10.mx/wp-content/uploads/hts%20png.png"/></a>
</p>
<form method="get" id="searchform" action="https://techinus.wordpress.com/">
 <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 qui.click 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 to qui.click Cancel reply