Note that there are some explanatory texts on larger screens.

plurals
  1. POFb.ui() popup works but dialog loads forever
    primarykey
    data
    text
    <p>I want to ask a user to grant the "publish_stream" permission to my app with the facebook javascript sdk. </p> <p>I initialize it like this:</p> <pre><code>FB.init({ appId : '203702512703', status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true, // parse XFBML channelURL : 'http://mydomain.com/channel.php', // channel.html file oauth : true // enable OAuth 2.0 }); </code></pre> <p>And my FB.ui call looks like this:</p> <pre><code>FB.ui({ client_id: '203702512703', method: 'oauth', scope: 'publish_stream', redirect_uri: 'http://mydomain.com/', response_type: 'token', display: 'dialog' }); </code></pre> <p>If i change 'dialog' to 'popup' it works perfectly. But if i specify 'dialog' or leave the option out it shows me the fb-div but with a loading animation (like this: <a href="http://p.iqs.me/t1c4j" rel="nofollow">http://p.iqs.me/t1c4j</a> ) and the content never loads.</p> <p>What am i doing wrong?</p> <p>UPDATE: I found this page <a href="http://developers.facebook.com/docs/reference/dialogs/#display" rel="nofollow">http://developers.facebook.com/docs/reference/dialogs/#display</a> that says the following about using "iframe" as display: "Because of the risk of clickjacking, this is only allowed for some certain dialogs, and requires you to pass a valid access_token"</p> <p>Doesn't say anything like that about "dialog" thought but both iframe and dialog gives the same bad result.</p> <p>How would i pass in the access_token?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload