Visa ett inlägg
Oläst 2012-10-01, 21:22 #1
quickhelps avatar
quickhelp quickhelp är inte uppkopplad
Medlem
 
Reg.datum: Oct 2007
Inlägg: 127
quickhelp quickhelp är inte uppkopplad
Medlem
quickhelps avatar
 
Reg.datum: Oct 2007
Inlägg: 127
Standard Facebook Request Dialog i en iframe på html-sida

Jag skulle vilja visa en facebook request dialog (för invites) som en iframe på min html-sida. Jag har följande kod nu:

Kod:
<div id="fb-root"></div>
    <script type="text/javascript">
    //<![CDATA[
           window.fbAsyncInit = function() {
               FB.init({appId: 'xyz', 
                  status: true, 
                  cookie: true, 
                  xfbml: true,
                  oauth: true});
            };


                FB.ui({ method: 'apprequests',
                    display: 'iframe',
                    title: 'Invitation to join game',
                    data: '1234',
                    new_style_message: true,
                    message: 'invitation to join game'});

            (function() {
                var e = document.createElement('script');
                e.type = 'text/javascript';
                e.src = document.location.protocol +
                    '//connect.facebook.net/en_US/all.js';
                e.async = true;
                document.getElementById('fb-root')
                                       .appendChild(e);
            }());
          //]]>
    </script>
Borde inte display:'iframe' visa detta innehåll som en iframe på sidan vid sidladdning? Eller gör ag något fel här?
quickhelp är inte uppkopplad   Svara med citatSvara med citat