Skip to content

Instantly share code, notes, and snippets.

View nguy3n47's full-sized avatar
💭

Nguyen Vu nguy3n47

💭
View GitHub Profile
This file has been truncated, but you can view the full file.
LOLPRMWBWEN2Q
LOLS8CHV75BX2
LOLZSUFMHX352
LOLRAXHZ5HV4U
LOL3Y4M2Y36S7
LOL9SBSNRMZ8E
LOLTY282U6YJP
LOL8N3J6BYJ4R
LOLBE6WV9RPJH
LOL6ZT4WG2ZTU
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) => {
@nguy3n47
nguy3n47 / api.js
Created October 15, 2022 06:04
api config
import axios from 'axios';
import * as CONSTANTS from 'config/constants';
let isRefreshing = false;
let failedQueue: any[] = [];
const _AppAPIInstance = axios.create({
baseURL: `${process.env.REACT_APP_VINOVA_API}`,
});