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.

Advertisements

, , , , , ,

  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

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: