This link has been bookmarked by 46 people . It was first bookmarked on 29 Sep 2007, by zou ave.
-
28 Sep 11
-
17 Aug 10
-
23 Jul 10
-
22 May 10
-
27 Mar 10
Kevin PrierFBJS is Facebook's solution for developers who want to use JavaScript in their Facebook applications. We built FBJS to empower developers with all the functionality they need, and to protect our users' privacy at the same time.
-
22 Feb 10
-
10 Feb 10
-
01 Feb 10
-
Beware you need to camelize style names. This works:
-
Beware you need to camelize style names. This works:
obj.setStyle('textDecoration', 'underline')But this won't:
obj.setStyle('text-decoration', 'underline') -
You must also remember to use 'px' notation when referring to positions or height/width, and so forth.
This works:
obj.setStyle('width', '340px')But this doesn't:
obj.setStyle('width', '340')This is important to remember when you're using algorithms to calculate those values. You can't just use the calculated variable x like:
setStyle('left', x), but rather likesetStyle('left', x+'px').
-
-
20 Jan 10
-
19 Jan 10
-
15 Jan 10
Christine FürstFBJS is Facebook's solution for developers who want to use JavaScript in their Facebook applications. We built FBJS to empower developers with all the functionality they need, and to protect our users' privacy at the same time.
If you are looking for how -
09 Jan 10
Eric BouchutFBJS is Facebook's solution for developers who want to use JavaScript in their Facebook applications.
facebook javascript API FBJS documentation application programming development web webdev
-
05 Dec 09
-
07 Nov 09
-
30 Oct 09
-
23 Oct 09
-
21 Sep 09
-
09 Aug 09
-
29 Jul 09
-
25 Jun 09
-
31 May 09
-
15 Mar 09
-
30 Oct 08
-
10 Jun 08
-
06 Jun 08
-
JavaScript that you give us gets parsed, and any identifiers (function and variable names) get prepended with your application ID. For example, the following code block:
-
This creates a virtual scope for every application that runs within Facebook. From there we expose certain functionality through a collection of JavaScript objects that allow you to modify your content on Facebook. Our objects are made to mimic the functionality of JavaScript as closely as possible, but it may take some getting used to for people who are already adept with JavaScript.
-
In profile boxes, inline scripts are deferred until the first "active" event is triggered by a user. An active event is considered either
onfocus,onclick,onmousedown, and so forth. Basically anything that requires a mouse click is an "active" event. On a canvas page, however, this example works just fine.
-
-
13 Dec 07
-
29 Sep 07
-
26 Sep 07
-
18 Sep 07
Andrew WhiteFBJS is Facebook's solution for developers who want to use Javascript in their Facebook applications. We built FBJS to empower developers with all the functionality they need, and to protect our users' privacy at the same time.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.