I am trying to use FBJS in my iframe app.开发者_Go百科 Nothing that I write seems to work. Any ideas?
I thought the whole point of an iframe Facebook app was so you could use your own JS instead of Facebook's subset? The iframe is sandboxed from the user's Facebook, so it's safe for Facebook - you can't access FB's internals. FBJS was invented so you could use JS in profile boxes and canvas apps without being able to screw with the rest of the Facebook functionality.
You will need to use Facebook connect to access FBJS calls.
Facebook encourages Iframe developers to use Facebook Connect to perform client-side facebook interaction, such as publishing feed stories, permission dialogs, etc.
See: http://wiki.developers.facebook.com/index.php/Creating_a_Popup_Dialog_in_an_IFrame
精彩评论