Selaa lähdekoodia

possibly fixed
debug output left

Herbert Vojčík 13 vuotta sitten
vanhempi
commit
509685e3a1
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      lib-app/facebook-oauth.js

+ 2 - 2
lib-app/facebook-oauth.js

@@ -10,7 +10,7 @@ fb.OAuthInterface = function () {
 
 fb.OAuthInterface.prototype.restApi = function (method, args) {
 //  return wget("https://api.facebook.com/"+method+this.tokenString(), args);
-  print("https://api.facebook.com/"+method+this.tokenString(), args);
+  print("https://api.facebook.com/method/"+method+this.tokenString(), args);
   print(wget("https://api.facebook.com/"+method+this.tokenString(), args, {complete:true}));
   response.stop();
 };
@@ -25,7 +25,7 @@ fb.OAuthInterface.prototype.graphApiPost = function (path, args) {
 
 fb.OAuthInterface.prototype.tokenString = function () {
   var token = this._token || (this._token = this.obtainToken());
-  return token ? "?access_token="+encodeURIComponent(token) : "";
+  return token ? "?access_token="+token : "";
 };
 
 fb.free = new fb.OAuthInterface;