diff --git a/readme.md b/readme.md index e33649f..c6c8703 100644 --- a/readme.md +++ b/readme.md @@ -60,11 +60,16 @@ Stand alone usage appId : 'YOUR APP ID', secret : 'YOUR API SECRET' }); - + facebook.api('/YOUR APP ID', function(data) { console.log(data); }); + // With parameters (do not try to add them to the path). + facebook.api('/12345', 'GET', {fields: [id]}, function(data) { + console.log(data); + }); + Tests -----