Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Write A Facebook App In JavaScript

As an hobby I wrote a game in JavaScript and would love to publish it to Facebook, can you write a Facebook application using pure HTML and JavaScript?

like image 651
Lennie De Villiers Avatar asked Apr 16 '09 11:04

Lennie De Villiers


People also ask

Does Facebook use JavaScript?

Facebook only uses one language in the Front-end that is JavaScript. JavaScript is the most popular programming language today as it is used by almost every platform in the front-end development that you visit today.

What is Facebook JavaScript?

The Facebook SDK for JavaScript provides a rich set of client-side functionality that: Enables you to use the Like Button and other Social Plugins on your site. Enables you to use Facebook Login to lower the barrier for people to sign up on your site. Makes it easy to call into Facebook's Graph API.

How do I enable JavaScript on Facebook?

Once the page is loading, mouse to the address bar and '''Left''' click the icon. Select '''Permissions. ''' In the menu, Make sure the ones you want to use are set to '''Ask''' or '''Allow. '''


2 Answers

Yes. Absolutely. In fact, one of the options for developing a Facebook application is an embedded frame pointing to your website which can be whatever you want, including straight HTML web serving.

There are two officially sanctioned libraries for accessing Facebook information and one of them is Javascript based.

You can do quite a bit on Facebook with just Javascript/HTML. There's a lot of possibilities using services outside of your own site (think Flckr, Google Ajax API etc...)

Facebook applications are pleasantly simple to develop.

The documentation is indeed at: http://developers.facebook.com/

I would also note that traffic with regards to Facebook, things can spin up really quickly. There are stories of students creating applications which quickly scaled to millions of users. I'm not saying this is likely to be the case for you, but it is can be an effective and a highly viral distribution platform.

like image 172
cgp Avatar answered Oct 13 '22 15:10

cgp


Yes, though your app may not be able to do much on Facebook. Have a look at http://developers.facebook.com for documentation.

like image 45
Daniel A. White Avatar answered Oct 13 '22 15:10

Daniel A. White