Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use jQuery in a facebook application

I finished my application in locale and I want to integrate it in Facebook creating an app. My application works well, but when I try to load it from Facebook it doen't work.

I've read that there's some problem including JavaScript that are not FBJS.

I'm not using the Facebook markup language but mine ( jQuery UI and simply html + php ).

Can someone provide me with a link to a guide that explains how to create an app that uses jQuery or other js framework?

like image 663
Stermi Avatar asked Nov 05 '09 10:11

Stermi


1 Answers

Remember that when you code JavaScript for Facebook you must write it in a way that conforms to FBJS, their rationale is "We built FBJS to empower developers with all the functionality they need, and to protect our users' privacy at the same time."

FBJQRY, is a library that aims to provide jQuery-like syntax in FBJS, and may be the answer to your question for non-iframe Facebook Applications.

like image 85
artlung Avatar answered Sep 17 '22 13:09

artlung