node-fb-graph
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "node-fb-graph", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Node.js module for interacting with the Facebook Graph API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ 'use strict'; | ||
const options = { | ||
url: `${fbURL}/${pageId}/posts?access_token=${pageAccessToken}`, | ||
url: `${fbURL}/${pageId}/posts?fields=likes.summary(true),message,created_time&access_token=${pageAccessToken}`, | ||
method: 'GET' | ||
@@ -14,0 +14,0 @@ }; |
@@ -12,3 +12,5 @@ 'use strict'; | ||
const result = await npmms.getPosts(_PAGE_ACCESS_TOKEN, _PAGE_ID); | ||
console.log(JSON.stringify(result.page.posts)); | ||
expect(result.page.posts.length).to.be.greaterThan(0); | ||
expect(result.page.posts[0].likes.summary.total_count).to.be.greaterThan(-1); | ||
}); | ||
@@ -15,0 +17,0 @@ it('return all ratings for a given business page', async function() { |
13865
52