diff --git a/resources/openfb.js b/resources/openfb.js index 87331d2..8e7df16 100644 --- a/resources/openfb.js +++ b/resources/openfb.js @@ -128,7 +128,9 @@ var openFB = (function () { loginCallback = callback; loginProcessed = false; -// logout(); + if (runningInCordova) { + oauthRedirectURL = "https://www.facebook.com/connect/login_success.html"; + } startTime = new Date().getTime(); loginWindow = window.open(FB_LOGIN_URL + '?client_id=' + fbAppId + '&redirect_uri=' + oauthRedirectURL + @@ -280,4 +282,4 @@ var openFB = (function () { getLoginStatus: getLoginStatus } -}()); \ No newline at end of file +}());