3 ms·
Facebook Announces FBJS2
- kwamenum86 18y agoWhy did they create fbjs in the first place? It gave js development in fbml an unnecessary learning curve. Other companies had already mastered the js sandbox by then so there was no reason for these js wrappers.
- omouse 18y agobecause Facebook is stupid and is building a walled garden?
- aston 18y agoA decent helping of NIH syndrome probably had something to do with it. Facebook engineers are pretty decent, and they like doing things in-house if at all possible.
- ccheever 18y agoThe only other example of a JS sandbox that works that I know of is Caja and Caja hadn't been publicly announced or released when FBJS originally launched. In general, its pretty useful to be able to sandbox JS on a page so you can allow 3rd parties to do scripting on your page without putting their stuff inside iframes.
- mpc 18y agoI've never written a FB app but aside from getting some of facebook's canned ui components, why would one use FBML and FBJS? It seems better to just run your whole app in an iframe and just use html/css/jquery and have complete control while hitting the REST api yourself.
- Spyckie 18y agoHere's a good explanation: http://www.ccheever.com/blog/?p=10 http://www.ccheever.com/blog/?p=10 FBML allows you to do specific Facebook-only features easily, like friend requests and searching for your friends. It also has documentation and tutorials, which is not trivial when making the FBML/iframe decision.