I am using the following code to create an invite dialog:
<div id="fb-root">
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId: 'MY_APP_ID', cookie: true,
status: true, xfbml: true
});
FB.ui({ method: 'apprequests',
message: 'Check out this new app!'
});
</script>
</div>
but this creates a popup dialog that is blocked by default by both Chrome and Firefox. I have to click the "Allow popups from this site" for the invite to show up.
Is there a way to create an invite without the popup dialog?
Currently I am using the Facebook C# sdk from https://github.com/facebook/csharp-sdk