diff --git a/fbsdk/fbsdk.d.ts b/fbsdk/fbsdk.d.ts index 146f7d76a..6f5df4fea 100644 --- a/fbsdk/fbsdk.d.ts +++ b/fbsdk/fbsdk.d.ts @@ -100,7 +100,9 @@ interface FBSDK{ init(fbInitObject : FBInitParams) : void; /* This method lets you make calls to the Graph API. */ - api(path : string, method ?: string, params ?: Object, callback : (fbResponseObject : Object) => any) : Object; + api(path : string, method : string, callback : (fbResponseObject : Object) => any) : Object; + api(path : string, params : Object, callback : (fbResponseObject : Object) => any) : Object; + api(path : string, method : string, params : Object, callback : (fbResponseObject : Object) => any) : Object; /* This method is used to trigger different forms of Facebook created UI dialogs. */ ui(params : FBUIParams, handler : (fbResponseObject : Object) => any) : void;