Skip to content

Commit

Permalink
added latest scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Lam Thuy Vo authored and Lam Thuy Vo committed Jul 18, 2017
1 parent 33dde11 commit 468889b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/fb_get_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def unicode_normalize(text):
def getFacebookCommentFeedData(status_id, access_token, num_comments):

# Construct the URL string
base = "https://graph.facebook.com/v2.6"
base = "https://graph.facebook.com/v2.9"
node = "/%s/comments" % status_id
fields = "?fields=id,message,like_count,created_time,comments,from,attachment"
parameters = "&order=chronological&limit=%s&access_token=%s" % \
Expand Down
4 changes: 2 additions & 2 deletions scripts/fb_get_posts_fb_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def getFacebookPageFeedData(group_id, access_token, num_statuses):

# Construct the URL string; see
# http://stackoverflow.com/a/37239851 for Reactions parameters
base = "https://graph.facebook.com/v2.6"
base = "https://graph.facebook.com/v2.9"
node = "/%s/feed" % group_id
fields = "/?fields=message,link,created_time,type,name,id," + \
"comments.limit(0).summary(true),shares,reactions." + \
Expand All @@ -40,7 +40,7 @@ def getReactionsForStatus(status_id, access_token):
# See http://stackoverflow.com/a/37239851 for Reactions parameters
# Reactions are only accessable at a single-post endpoint

base = "https://graph.facebook.com/v2.6"
base = "https://graph.facebook.com/v2.9"
node = "/%s" % status_id
reactions = "/?fields=" \
"reactions.type(LIKE).limit(0).summary(total_count).as(like)" \
Expand Down
4 changes: 2 additions & 2 deletions scripts/fb_get_posts_group_multiple.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def getFacebookPageFeedData(group_id, access_token, num_statuses):

# Construct the URL string; see
# http://stackoverflow.com/a/37239851 for Reactions parameters
base = "https://graph.facebook.com/v2.6"
base = "https://graph.facebook.com/v2.9"
node = "/%s/feed" % group_id
fields = "/?fields=message,link,created_time,type,name,id," + \
"comments.limit(0).summary(true),shares,reactions." + \
Expand All @@ -43,7 +43,7 @@ def getReactionsForStatus(status_id, access_token):
# See http://stackoverflow.com/a/37239851 for Reactions parameters
# Reactions are only accessable at a single-post endpoint

base = "https://graph.facebook.com/v2.6"
base = "https://graph.facebook.com/v2.9"
node = "/%s" % status_id
reactions = "/?fields=" \
"reactions.type(LIKE).limit(0).summary(total_count).as(like)" \
Expand Down
4 changes: 2 additions & 2 deletions scripts/fb_get_posts_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def getFacebookPageFeedData(page_id, access_token, num_statuses):

# Construct the URL string; see http://stackoverflow.com/a/37239851 for
# Reactions parameters
base = "https://graph.facebook.com/v2.6"
base = "https://graph.facebook.com/v2.9"
node = "/%s/posts" % page_id
fields = "/?fields=message,link,created_time,type,name,id," + \
"comments.limit(0).summary(true),shares,reactions" + \
Expand All @@ -40,7 +40,7 @@ def getReactionsForStatus(status_id, access_token):
# See http://stackoverflow.com/a/37239851 for Reactions parameters
# Reactions are only accessable at a single-post endpoint

base = "https://graph.facebook.com/v2.6"
base = "https://graph.facebook.com/v2.9"
node = "/%s" % status_id
reactions = "/?fields=" \
"reactions.type(LIKE).limit(0).summary(total_count).as(like)" \
Expand Down
4 changes: 2 additions & 2 deletions scripts/fb_get_posts_page_multiple.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def getFacebookPageFeedData(page_id, access_token, num_statuses):

# Construct the URL string; see http://stackoverflow.com/a/37239851 for
# Reactions parameters
base = "https://graph.facebook.com/v2.6"
base = "https://graph.facebook.com/v2.9"
node = "/%s/posts" % page_id
fields = "/?fields=message,link,created_time,type,name,id," + \
"comments.limit(0).summary(true),shares,reactions" + \
Expand All @@ -43,7 +43,7 @@ def getReactionsForStatus(status_id, access_token):
# See http://stackoverflow.com/a/37239851 for Reactions parameters
# Reactions are only accessable at a single-post endpoint

base = "https://graph.facebook.com/v2.6"
base = "https://graph.facebook.com/v2.9"
node = "/%s" % status_id
reactions = "/?fields=" \
"reactions.type(LIKE).limit(0).summary(total_count).as(like)" \
Expand Down

0 comments on commit 468889b

Please sign in to comment.