This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ABSOLUTE_URI = "http://yourpage.com/openerhandler.html"; | |
var FB_ID = "123456778"; | |
function openFBLoginDialogManually(){ | |
// Open your auth window containing FB auth page | |
// with forward URL to your Opened Window handler page (below) | |
var redirect_uri = "&redirect_uri=" + ABSOLUTE_URI + "fbjscomplete"; | |
var scope = "&scope=public_profile,email,user_friends"; | |
var url = "https://www.facebook.com/dialog/oauth?client_id=" + FB_ID + redirect_uri + scope; |