I am wondering how to use the facebook javascript in an canvas application (which is using the facebook c# sdk).
I want to sent the user to a request form with a call like
FB.ui({
method: 'apprequests',
message: 'You should learn more about the',
}, Log.info.bind('send-to-many callback'));
In my Site Masterpage i have the following code before the end body tag:
<div id="fb-root">
</div>
<script src="http://connect.facebook.net/en_US/all.js" type="text/javascript"></script>
<script type="text/javascript">
FB.init({
appId: 'AppId', cookie: true,
status: true, xfbml: true
});
</script>
But somehow it breaking the whole application. The app is not in the iframe of facebook anymore.
It just get's loaded as own website.
What's the best way to integrate the js sdk in such an canvas application (ASP.NET MVC 2)?