just like that

  • Home
  • Make Money
    • Your Click
    • Others Click
    • Other Programs
  • Technical Support
    • Windows
    • Android
    • Other
      • how to do
  • online Is On
    • Online Media
      • Online Fm Radio
      • Online Tv
      • Online Games
    • Funny Videos
    • Downlaod Mp3 And MP4 Songs
    • Most Important Videos On Youtube
    • How To Make
  • Tourist Place
  • Health
    • Food Medicine
    • Workout
  • Image Collection

Wednesday, 16 November 2011

Write Your Own Facebook App in 5 Minutes

 09:07     facebook     No comments   



facebook apps tutorialDo you know that the Facebook Apps Directory now contains more than 350,000^ Facebook applications for their 300 million users.
Whether you are looking to embed presentations in your Facebook profile or want to share your favorite books and movies with friends or just want to spend time playing a word game with strangers, chances are that there already exists a Facebook app to solve your problem.
However if you are feeling a little more adventurous and want to develop your own Facebook App that works the way you want* and doesn't carry any third-party branding or advertising, here's a an easy tutorial to help you get started.
[*] Check out apps.facebook.com/digitalinspiration.
[^] For comparison sake, the Apple iTunes store is relatively bigger as it has about 85,000apps for their 50 million iPhone + iPod Touch users worldwide.

How to Write a Facebook Application in 5 minutes

The Plan: We'll write a basic Facebook app that will have links to our social profiles and a Google site search box. Later, you can expand the idea to build slightly more complex applications that contain RSS feeds, video clips, etc.
Things you need: You don't have to be a "geek" for writing basic Facebook Applications. All you need is some knowledge of web programming languages and some free space on a web server where you'll host your Facebook app (which are nothing but simple PHP files).
facebook new applicationOK, let's get started.
Step 1. Assuming that you already have an account on Facebook, add the Developer application to your Facebook profile and then click "Set Up New Application".
Step 2. Give your new Facebook App a name, agree to the terms and then upload some image for your application logo.
Step 3. From the Application settings, choose Canvas and set FBML as the rendering method. The other option is IFRAME but we'll use FBML for the moment to keep things simple.
facebook app previewStep 4. Using any WYSIWYG HTML editor (or even notepad), write the content that you want to display inside your Facebook application.
In this example, we are adding just two hyperlinked images with a Google search box and therefore the code looks something like this:
<p>
<a href="http://twitter.com/labnol">
<img src="http://labnol.org/twitter.png"/></a>
<a href="http://www.youtube.com/labnol">
<img src="http://labnol.org/youtube.png"/></a>
</p>
<form action="http://search.labnol.org/">
<input type="text" name="q" size="15" />
<input type="submit" name="s" value="Search" />
</form>
Step 5. Log in to your web server where you'll be hosting the Facebook App and create a sub-directory called "facebook". So if you domain is example.com, the Facebook app can be accessed from example.com/facebook.
Under the facebook directory, download (wget) the application template and rename the file to index.php. Replace the API Key and the Secret key in index.php with real values and also copy-paste the HTML (that you created in Step 4) into the index.php file.
Step 6. While you are inside the "facebook" directory, download the Facebook library(through wget) and extract the files in this archive via gunzip and tar. Now execute the following command to move facebook.php and other library files outside the facebook-platform subdirectory.
$ mv facebook-platform/client/facebook*.php .
Step 7. We are almost done. Go back to your Facebook Application page in the browser, click "Edit Settings" and set the values for Canvas.
facebook_canvas
  • The Canvas Page URL - choose a nice vanity URL for your Facebook application.
  • The Canvas Callback URL - location of the web service where your files are hosted (in our case, this will be example.com/facebook).
That's it. Anyone can now add your Facebook app to their profiles either in the Boxes tab or in the sidebar of the main profile page.
Check the "Stay Connected" box on this Facebook page for a working demo.
facebook_sample_apps

Extend your Facebook Apps

We just created a basic app but you can make it more useful with simple modifications. Some ideas:
#1. You can incorporate RSS feeds in your Facebook apps though a feed parsing library like SimplePie.
#2. You can track your Facebook application usage via Google Analytics. Just add the following code in the PHP code.
<fb:google-analytics uacct="UA-12345-xx" />
#3. You can use the same CSS Styles and color schemes for your Facebook Apps that are used on the main Facebook site.
#4. If you want to embed YouTube video or Slideshare presentations in your Facebook apps (as shown here), you should use the <fb:swf> tag.
#5. Instead of using a plain search box, you should consider using the Google AJAX search API (see example) as that will let you customize the look and feel of search results to match other elements on the Facebook page.
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 comments:

Post a Comment

Video Game Godfather - Work From Home Selling Video Games Online

Click Here!

Appszero - Build Mobile Apps With Zero Coding

Click Here!

Translate

I Got Total Views

Popular Posts

  • 10 Different Url Shorteners That Give You Addon Benefits
    There was a point of time when no one ever considered the fact that there ever might arise a need for a URL shortener. In recent times, howe...
  • Create Short URLs with the Goo.gl Bookmarklet
    If you are looking for a way to create your own short URLs with goo.gl but without installing the Google Toolbar, here's a quick bookma...
  • how to avoid ads in youtube
    IT'S just simple right click select pop out thats all  
  • Live Flight Tracking on Google Maps
    Casper is a brilliant mashup that displays movement of incoming and outgoing flights on a Google Map  live . The airplanes are colored based...
  • Things You Should Do After Installing WordPress
    The WordPress tips and hacks mentioned below apply to a self-hosted installation of WordPress. You may skip if your WordPress blog is hosted...
  • Twitter Tip: Add a ‘Tweet This’ Link to your Blog on WordPress or Blogger
    Twitter can be a great source of traffic for your blog. To give you an example, my article on bookmarklets was on the delicious popular sect...
  • How to Set Up iCloud For Your iOS Devices
    Apple has introduced iCloud and Wi-Fi connectivity for Mac and other mobile devices . This is the most unique feature of  iOS 5 for iPad, iP...
  • How 2G Works
    How 2G Technology Works Advancement in mobile phones technology has been marked by generation (G). Analog phones are related to the 1st gen...
  • Add Google Autocomplete to other Search Engines
    When you type a few characters in the search box of your favorite web browser - be it Firefox, Internet Explorer or the Omnibox of Google ...
  • earnparttimejobs
    earnparttimejobs:-                            Indians Earn Rs.50000/month via part time jobs. Easy form filling data entry jobs Earn Rs.25,0...

Recent Posts

Categories

  • 12b
  • 180
  • 365 Kadhal Kadithangal
  • 3g
  • 4 Students
  • 7am arivu video songs
  • affiliate
  • Airtel Free Live Tv
  • Audio CD/DVD Burning
  • blog tricks
  • blogging
  • browser
  • Dish tv
  • download manger
  • download soft
  • earn sites
  • facebook
  • Favicon to Blogger
  • free call
  • free sms
  • games
  • Gemini Comedy
  • google
  • gprs
  • health
  • hindi
  • How do I create a blog
  • internet
  • iPhone
  • java
  • Kavithai
  • LG
  • live mobile tv
  • live tv
  • mobile
  • mobile tv
  • motorola
  • movies
  • mp3 player
  • Nadanthathu Enna
  • Noika
  • old movies
  • online fm
  • online movie
  • online movies
  • online tv
  • Photoshop
  • samsung
  • Serials
  • software
  • sony ericsson
  • sql
  • Surya Hits
  • tamil
  • tamil movies
  • tamil video songs
  • tamilmobiletv
  • tech
  • telugu
  • top 10
  • TV SHOWS‎
  • video converter
  • Video Players
  • video songs
  • windows software
  • youtube

Blog Archive

  • August (36)
  • September (39)
  • November (715)
  • December (627)

About Me

My photo
punniyaseelan
View my complete profile
Powered by Blogger.

Sample Text

Copyright © just like that | Powered by Blogger
Design by punniya seelan | Blogger Theme by New Blogger Themes | Distributed By Templates