Follow instructions here
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const postID = '4387428904674656'; // 'https://www.facebook.com/LienMinhHuyenThoai/posts/4387428904674656' | |
const accessToken = ''; // find 'EAAA' at 'https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed' | |
const url = 'https://graph.facebook.com/' + postID + '/comments?fields=message&access_token=' + accessToken; | |
const analyze_comments = (url) => { | |
fetch(url) | |
.then((response) => response.json()) | |
.then((results) => { | |
if (results) { | |
const comments = results.data; | |
comments.forEach((comment) => { |