Category Archives: Facebook

After setting up the facebook application development platform on Amazon EC2 follwing this link, users can simply follow the README file located at “/var/apache2/2.2/htdocs/footprints/README” to test out the sample “footprints” application.

Here are the detailed steps, you can follow to sucessfully deploy the sample facebook application available on Amazon EC2 instance.

Provide appropriate application name and agree to the terms and conditions. finally click on the submit button to create the new application.

[step-5]

Click on the “Edit Settings” and provide following details.

Call back URL:

http://ec2-XX-XX-XX-XXX.compute1.amazonaws.com/footprints

Canvas page URL:

http://apps.facebook.com/osolami

replace osolami with any avaiable string, to identify your application.

Check mark on “Can your application be added on facebook?”

In the default FBML text box provide following

<fb:ifisownprofile>
<br />Hi
<fb:name uid="profileowner" firstnameonly="true"
useyou="false"/>! This is the default FBML as specified
in Footprints' account configuration page. This will get replaced the
first time you get stepped on.
</fb:ifisownprofile>

after the change, click on “Save” button to update the settings.

[step-6]

Copy API Key and Secret Key from the above page and change that in to

/var/apache2/2.2/htdocs/footprints/config.php

after the change config.php should look like as given below

<?php
// Get these from http://developers.facebook.com
$api_key = 'd4ec887d2c2d820300eb95785fa5bd68';
$secret = 'a8db36baf5c93f3673fce7ea799d6b40';
/* While you're there, you'll also want to set up your callback url to the url
* of the directory that contains Footprints' index.php, and you can set the
* framed page URL to whatever you want. You should also swap the references
* in the code from http://apps.facebook.com/footprints/ to your framed page URL. */
// The IP address of your database
$db_ip = 'localhost';
$db_user = 'root';
$db_pass = '';
// the name of the database that you create for footprints.
$db_name = 'footprints';
/* create this table on the database:
CREATE TABLE `footprints` (
`from` int(11) NOT NULL default '0',
`to` int(11) NOT NULL default '0',
`time` int(11) NOT NULL default '0',
KEY `from` (`from`),
KEY `to` (`to`)
) */
?>