0

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

Meyer Denney
  • 796
  • 1
  • 11
  • 34
  • Possible Duplicate : http://stackoverflow.com/questions/4956359/stop-the-facebook-popup-blocker – Ben Mar 23 '12 at 05:52
  • The individual is looking on how to stop browsers from preventing the popup. I am trying to create an invite inside the page with no popups at all. – Meyer Denney Mar 23 '12 at 14:52
  • I don't think it's possible. Facebook is generating the popup. – LockTar Mar 23 '12 at 14:59

0 Answers0