Note that there are some explanatory texts on larger screens.

plurals
  1. POOauth permission request window is not shown using facebook javascript
    text
    copied!<p>I am using OAuth dialog to get user email on start of the app... so on hitting the app url <a href="https://apps.facebook.com/redirecttestapp/" rel="nofollow">(https://apps.facebook.com/redirecttestapp/)</a> instead of Allow window, i see a login to app window and if i click login then i see a allow window .. how to get rid of login into app window? here is the code :</p> <pre><code>&lt;script&gt; var href = "https://apps.facebook.com/redirecttestapp/"; var appliId = "233664670032230"; window.fbAsyncInit = function() { FB.init({ appId : '********', // App ID channelURL : '//apps.facebook.com/redirecttestapp/', // Channel File status : true, // check login status cookie : true, // enable cookies to allow the server to access the session oauth : true, // enable OAuth 2.0 xfbml : true // parse XFBML }); // Additional initialization code here FB.getLoginStatus(function(response) { if (response.status === 'connected') { // the user is logged in and connected to your // app, and response.authResponse supplies // the user’s ID, a valid access token, a signed // request, and the time the access token // and signed request each expire alert("the user is logged in and connected to your app"); var uid = response.authResponse.userID; var accessToken = response.authResponse.accessToken; } else if (response.status === 'not_authorized') { // the user is logged in to Facebook, //but not connected to the app alert("the user is logged in to Facebook,but not connected to the app"); } else { // the user isn't even logged in to Facebook. // alert("the user isn't even logged in to Facebook."); top.location.href = "https://www.facebook.com/dialog/oauth?client_id=233664670032230&amp;redirect_uri="+href+'&amp;display=page'; } }); }; // Load the SDK Asynchronously (function(d){ var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; d.getElementsByTagName('head')[0].appendChild(js); }(document)); &lt;/script&gt; </code></pre>
 

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