Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #55 from eugenezar/master

Fix OAuth token return URLs
  • Loading branch information...
commit 028b45e656230db588c6b69d9f2d606243d1d855 2 parents 92ea058 + c85c769
@elgenie elgenie authored
Showing with 5 additions and 4 deletions.
  1. +1 −1  chrome/content/lib.js
  2. +4 −3 chrome/content/toolbar.js
View
2  chrome/content/lib.js
@@ -757,7 +757,7 @@ var fbLib = {
}
else */{
//prefSvc.setIntPref('extensions.facebook.permissions.level', 0);
- var askUrl = "https://www.facebook.com/dialog/oauth?client_id=" + fbSvc.wrappedJSObject._appId + "&redirect_uri=http://www.facebook.com/&scope=manage_notifications,user_photos,publish_stream,status_update,friends_status&response_type=token";
+ var askUrl = "https://www.facebook.com/dialog/oauth?client_id=" + fbSvc.wrappedJSObject._appId + "&redirect_uri=http://www.facebook.com/connect/login_success.html&scope=manage_notifications,user_photos,publish_stream,status_update,friends_status&response_type=token";
gBrowser.selectedTab = gBrowser.addTab(askUrl);
}
}
View
7 chrome/content/toolbar.js
@@ -466,7 +466,8 @@ var facebook = {
{
fbLib.debug( "onAuthIframeLoad: have access token : " + tup[1]);
fbSvc.sessionStartOAuth(tup[1]);
- fbLib.debug( "onAuthIframeLoad: finished session start");
+ fbLib.debug( "onAuthIframeLoad: finished session start. Redirecting to Facebook.");
+ content.document.location = "https://www.facebook.com";
}
}
}
@@ -512,7 +513,7 @@ var facebook = {
}
}
- gBrowser.selectedTab = gBrowser.addTab("https://www.facebook.com/dialog/oauth?client_id=" + fbSvc.wrappedJSObject._appId + "&redirect_uri=http://www.facebook.com/&scope=manage_notifications,user_photos,publish_stream,status_update,friends_status&response_type=token");
+ gBrowser.selectedTab = gBrowser.addTab("https://www.facebook.com/dialog/oauth?client_id=" + fbSvc.wrappedJSObject._appId + "&redirect_uri=http://www.facebook.com/connect/login_success.html&scope=manage_notifications,user_photos,publish_stream,status_update,friends_status&response_type=token");
facebook.forceUIOff(true);
prefSvc.setBoolPref('extensions.facebook.permissions.asked', true);
@@ -715,7 +716,7 @@ var facebook = {
fbLib.setAttributeById('facebook-auth-iframe', 'src', "about:blank");
- fbLib.setAttributeById('facebook-auth-iframe', 'src', "https://www.facebook.com/dialog/oauth?client_id=" + fbSvc.wrappedJSObject._appId + "&redirect_uri=http://www.facebook.com/&scope=manage_notifications,user_photos,publish_stream,status_update,friends_status&response_type=token");
+ fbLib.setAttributeById('facebook-auth-iframe', 'src', "https://www.facebook.com/dialog/oauth?client_id=" + fbSvc.wrappedJSObject._appId + "&redirect_uri=http://www.facebook.com/connect/login_success.html&scope=manage_notifications,user_photos,publish_stream,status_update,friends_status&response_type=token");
},
unload: function() {
Please sign in to comment.
Something went wrong with that request. Please try again.