Jelajahi Sumber

possibly fixed
debug output left

Herbert Vojčík 13 tahun lalu
induk
melakukan
65e0f0c631
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      lib-app/facebook-oauth.js

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

@@ -19,6 +19,7 @@ fb.OAuthInterface.prototype.graphApiGet = function (path, args) {
 fb.OAuthInterface.prototype.graphApiPost = function (path, args) {
   print(request);
   print("https://graph.facebook.com/"+path+this.tokenString(), args);
+  print(wpost("https://graph.facebook.com/"+path+this.tokenString(), args, {complete:true}));
   response.stop();
 };
 
@@ -32,7 +33,7 @@ fb.free.obtainToken = function () {};
 
 fb.offline = new fb.OAuthInterface;
 fb.offline.obtainToken = function () {
-  var obtained = fb.free.graphApiPost("access_token", {
+  var obtained = fb.free.graphApiPost("oauth/access_token", {
     grant_type: "client_credentials",
     client_id: storage.facebooklib.appId,
     client_secret: storage.facebooklib.secret
@@ -42,7 +43,7 @@ fb.offline.obtainToken = function () {
 
 fb.online = new fb.OAuthInterface;
 fb.online.obtainToken = function () {
-  var obtained = eval("("+fb.free.graphApiPost("exchange_sessions", {
+  var obtained = eval("("+fb.free.graphApiPost("oauth/exchange_sessions", {
     sessions: fb.sessionKey,
     client_id: storage.facebooklib.appId,
     client_secret: storage.facebooklib.secret