Note that there are some explanatory texts on larger screens.

plurals
  1. POOpen Auth Dialog in Facebook php SDK
    primarykey
    data
    text
    <p>I am integration Facebook connect in my website using php SDK.. Everything is working fine except that I want that instead of redirecting to facebook for authentication, I want to open OAuth Dialog.. Currently Im using following url for authentication,.. It redirects to facebook but doesn't open OAuth Dailog.. </p> <p><code>https://www.facebook.com/dialog/oauth?client_id=XXXXXXXXXXX&amp;redirect_uri=http%3A%2F%2Fwww.setsail2nz.com.au%2Fmicrosite%2Ffbalbums.php%3Fpid%3D1&amp;state=ad89eddd7f71e7337785f604710c97e8&amp;scope=user_photos%2Cpublish_stream%2Cmanage_friendlists%2Cemail&amp;display=popup</code></p> <p>Any ideas?</p> <p>EDIT: I know how to do it with Facebook JS SDK.. But is there a way to do it with php?</p> <p>Edit 2: Okay now im using JS SDK but still its not opening the dialog.. Here is my code</p> <pre><code>&lt;div id="fb-root"&gt;&lt;/div&gt; &lt;script&gt; window.fbAsyncInit = function() { FB.init({ appId : 'XXXXXXXXXX', // App ID status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true, // parse XFBML oauth : true // enables OAuth 2.0 }); }; // Load the SDK Asynchronously (function(d){ var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; ref.parentNode.insertBefore(js, ref); }(document)); function fblogin() { FB.login(function(response) { alert(response); },{perms: "user_photos,publish_stream,manage_friendlists,email"}); } &lt;/script&gt; </code></pre>
    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