diff --git a/src/oauth.facebook.js b/src/oauth.facebook.js index 25c6eb7..7fa5116 100644 --- a/src/oauth.facebook.js +++ b/src/oauth.facebook.js @@ -25,7 +25,7 @@ redirect_uri = options.redirect_uri; } } - var flowUrl = "https://www.facebook.com/v2.6/dialog/oauth?client_id=" + clientId + "&redirect_uri=" + redirect_uri + "&response_type=token&scope=" + appScope.join(","); + var flowUrl = "https://www.facebook.com/v2.12/dialog/oauth?client_id=" + clientId + "&redirect_uri=" + redirect_uri + "&response_type=token&scope=" + appScope.join(","); if(options !== undefined && options.hasOwnProperty("auth_type")) { flowUrl += "&auth_type=" + options.auth_type; }