Permalink
Browse files

backed out fix for #10, as was causing some login/permissions problems

  • Loading branch information...
mackers committed Jun 18, 2012
1 parent 7887e70 commit 6189d3e326e895f29263f319fba598ccdfbabe47
Showing with 2 additions and 2 deletions.
  1. +2 −2 chrome/content/lib.js
View
@@ -750,12 +750,12 @@ var fbLib = {
var prefSvc = Cc['@mozilla.org/preferences-service;1'].getService(Ci.nsIPrefBranch);
var accessToken = prefSvc.getCharPref('extensions.facebook.access_token');
var permissionsLevel = prefSvc.getIntPref('extensions.facebook.permissions.level');
- if (accessToken || permissionsLevel > 0) {
+ /*if ((accessToken || permissionsLevel > 0) {
fbLib.openAndReuseOneTabPerURL("https://www.facebook.com/login.php");
fbLib.setAttributeById('facebook-login-status', 'status', 'waiting');
setTimeout(function() { fbLib.setAttributeById('facebook-login-status', 'status', ''); }, 60*1000);
}
- else {
+ 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";
gBrowser.selectedTab = gBrowser.addTab(askUrl);

1 comment on commit 6189d3e

Contributor

brianking commented on 6189d3e Jun 19, 2012

Checkin message incorrect, should be "backed out fix for #50, ..."

Please sign in to comment.