Skip to main content

Creating Facebook Applications Tutorials [Part-1] The Setup

If you are reading this post then you must be probably wondering about "How do people make those Funny Horoscope Apps and those Top Mutual Friends Apps on Facebook? ". You have come to the right place my friend.. Because I was in that situation a couple of months ago. So here I bring to you my experience on Creating Facebook apps from scratch. In this Tutorial Series I will cover topic from the Basics of Creating Facebook Apps to the Best Practices of App development like Tagging, Photo Uploads, Games, Socializing your site etc.. I will also show you how to make a simple Facebook app Called "Top Mutual Friends". 

But before I begin I felt free to assume that You have sound Knowledge on PHP MySQL, JavaScript and HTML n CSS of-course. If you have no idea what these things are than please go through w3schools.com to get a brief idea about the languages and continue with this tutorial.

OK! Lets get Started with the Setting up your Developers Account then.. :)



Before you can start creating apps, you need to have a facebook developers account. To have one is as easy as opening a website (literally). Just go to http://developers.facebook.com after signing in to your facebook account. If you are new to Facebook Developers (Which you obviously are :P) and have opened it for the first time then, you will see a webpage something like this below. 



Facebook Developers Website SnapShop
http://developers.facebook.com

You will see a  Register Now  button on top. Click on it!. Now if you have a verified facebook account, your "Registration" (I skipped most of it.. Was more like a survey :D) will continue with the normal flow. Or else it will ask you to verify your account via Phone(Please don't use your Mom's phone coz your facebook "updates" will get texted to her XD.. Eee.. ). 




Once you have verified and all set, Click on the button again. Accept the terms and conditions. You may or may NOT fill in the second step which looks like this on the right --->
Same on the third step. Hit OK. and "Yay! you are a Facebook Developer now" - Thats what they said :P

Once you have been welcomed as an developer, you will be redirected to your Apps Dashboard. Or if somehow got lost exploring the documentations(i will be covering those in later posts), You can click on the  Apps  menu on top. 


Now quickly click on  + Create New App  button. A Dialog box will pop up asking for App's high-priority details like


  1. Your Apps Name : Your Applications Name which will appear on the search results . There is no restriction in choice of character but keep it within 32 chars. 
  2. App Name Space :  The app namespace is used for defining custom Open Graph actions and objects (e.g., namespace:action) and for the URL for Apps on Facebook (e.g., http://apps.facebook.com/namespace). Means its like a variable facebook uses to address your app. It doesnt accept Caps or Spaces. As a PHP developer i would recommend you to use an Underscore ( _ ) than a hyphen ( - )
  3. Web Hosting : If you already have a Web Host its well and good. If not you can apply for one at Heroku Services. You need a Web Host to host your app even if you are building apps inside facebook or even for websites with facebook login. You will get the idea why in my next blog.

Once you are done choosing an wonderful name and a namespace for your app. Hit Continue. After that you will be redirected to you App's setting page. 




Here you have do set some more fields before you can finally start building an App. 

Now the first thing you will notice about page is the App ID and the App Secret. App ID is the number that helps facebook to find your app from millions of apps. App Secret is like a key that helps to authenticate the Application and also is used to generate access tokens which gives the app access to users public/private data. Never share your App Secret or keep it public . You can reset  your app secret if it was disclosed by any chance. (Oops... I will have to reset mine now :D)







Fill in the details.. Keep in mind if you are hosing your app in a subdomain of website then do NOT include "www" in the url. Cahoose a category that your app belongs. Always enable the Sandbox Mode during development to avoid Negative feedback get your App removed before launching (True Story :( ).




Now Select how would you integrate your app with facebook.  The two options shown above are almost the same from the development perspective but still there are some differences. 


I would prefer "Apps on Facebook" if i have a SSL certificate i.e my website can also run on HTTPS Secure protocol. If you dont have that feature you can pay some extra bucks to your Web host and get it. This has been made mandatory by facebook on October. 


OR. If you want thing for free like me.. you can select "Website with Facebook Login" . Just give the URL to the address where you have hosted your app. on your web sever. You can use your Paid hosts or can use a free host with php that has CURL_INIT and JSON_DECODE functions enabled. I would recommend www.000webhost.com which provides unrestricted php access.


Now another difference between these two are, apps on facebook have their own side bar access etc. Which can be useful if you want to make Games or interactive applications on facebook. Games from Zenga like Farmville, MafiaWars, etc.. are integrated with this option. Whereas on the other hand the "website with facebook" option will redirect you to your site. I will go through this concept in my next posts. 


Choose the one that is best for you and Save.. We are done with the first step  of building a Facebook application. Until i write my next piece of tutorial about "Facebook App design Basics and Concepts". Do play around with the different options on the side menu.

Namaste!

(If you need any further help in starting your Apps, you can drop in your queries in the comments box and the author will make things simpler for you)

Comments

  1. thanks simpy for the 000webhost thing... tried a lot of them like this one before but 000webhost seems better... letsee how it works

    ReplyDelete
    Replies
    1. It provides unrestricted PHP access.. which is a good thing..

      Delete

Post a Comment

Popular posts from this blog

Best Fuel Discount Trick 2026: Get 10% Cashback at HP Pumps (Jupiter Card, Amazon Pay & FASTag Hack)

Best Fuel Discount Trick 2026: Get 10% Cashback at HP Pumps (Jupiter Card, Amazon Pay & FASTag Hack) Are you tired of rising fuel prices? While most dedicated fuel credit cards in India offer a maximum of 4% to 8.5% value back, there is a secret "stacking" strategy that lets you hit a massive 10% return on every liter of petrol or diesel. By leveraging the Jupiter EDGE+ Credit Card and the HP Pay App , you can bypass standard fuel rewards and unlock pro-level savings. Here is the exact step-by-step tutorial. The Strategy: Why This Beats Traditional Fuel Cards Most users think a fuel-branded card is the best way to save. However, even top-tier cards have limits: Note: Popular dedicated fuel cards like the RBL IndianOil XTRA (approx. 8.5%) or IDFC FIRST HPCL Power+ (approx. 6.5%) are excellent, but they are often capped or restricted. This Jupiter trick provides a flat 10% return , making it the highest-value fuel hack currently available in 2026. St...

Maximize Flight Savings - The Triple-Dip Flight Hack: Promo Codes + Gift Cards + Cashback Cards

  The Triple-Dip Flight Hack: Promo Codes + Gift Cards + Cashback Cards = Massive Savings Welcome back to The Paradox Blogger's guide to traveling smarter, not harder. In the world of travel hacking, "Double Dipping" used to be the secret weapon of savvy flyers. But what if you could take it a step further? Most travelers think they have to choose between a promo code and a discounted payment method . By following a specific sequence, you can stack a promo code, a discounted gift card, AND a cashback credit card to pull off the ultimate Triple Dip . The Golden Rule: To make this work, your initial promo code must be "Generic." If the code requires a specific bank card (like "MMTDFC"), the system will block your gift card later. Always look for codes labeled "Applicable on All Payment Modes." 1. The 3 Platforms Where the Triple-Dip Actually Works EaseMyTrip (EMT): The Convenience Fee King EaseMyTri...

THE FLIGHT DAY

  It was that momentous day and I was ready for it. I found myself in front of the mirror, keenly analysing my own reflection. No I was not a narcissist. I was more intent on determining how much I had changed. Have I really changed? Have I not been the person I was supposed to be? Before I could answer my own questions, I heard the message tone of my phone. It was she and her message said - "Please try to be on time at least tonight. Else let me know, I will help myself with a cab." I replied back - "That won't be necessary. The cab is here already. Starting now. Be ready." I lifted my luggage and rushed to the cab outside.   Shall we directly go to the airport Sir? asked the driver. "No we have to pick someone on the way and then take us to airport." The driver nodded and the cab was on its way. "Someone"- I just referred to her as "someone". Is that what she will be for me after tonight? Is this truly ...