I have developed two applications with FB.ui()
calls to send app requests and ask to post status update with the "feed" parameters. It worked fine for several months, but for the past week I have been encountering error :
c is undefined line 18 : FB.provide('Dom',{containsCss:function...(oldonload);}else oldonload();};})(); File : all.js
It's from the file all.js I import to use FB object from the url : http://connect.facebook.net/fr_FR/all.js (i also tried http://connect.facebook.net/en_US/all.js)
This is the part of the code which causes the error :
window.addEvent('domready', function() {
if(jsonRedirection.redirect == false) {
FB.init({
appId : FBappId,
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
}
});
function addFriends()
{
FB.ui({
method: 'apprequests',
message: 'Test'
},
function(response) {
if(response != null) {
alert('ok');
}
}
);
}
I check my appId and I have the "fb-root" div before I call my addFriends function ...