From 6fb7c791d6452ef0d99812b923bbdd9a42a4c152 Mon Sep 17 00:00:00 2001 From: "Eric C. Brown" Date: Sat, 21 Jun 2014 10:32:36 -0500 Subject: [PATCH] Adds example to readme for supplying parameters to the api call. --- readme.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -----