|
@@ -10,7 +10,7 @@ fb.OAuthInterface = function () {
|
|
|
|
|
|
fb.OAuthInterface.prototype.restApi = function (method, 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;
|