I have the page which has MooTools used in the page and I have added facebook sdk too.
<script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script>
and in the body it is like this.
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId : 'myappid',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML
oauth : true
});
</script>
For sending FB invite request I use.
FB.ui({
method: 'apprequests',
message: 'tests messages',
//title: 'Invite you friend to MyApp',
to: fbid
},function(r){ console.log(r); });
But this gives me "a is null" in all.js file. If I remove MooTools file, everthing works fine. But I need MooTools. How can I get fix for this problem? Any help please?