var options = {
method: 'post',
json: true,
url: 'https://graph.facebook.com/'+commentId+'/comments?message='+req.body.message+'&access_token={{ACCESSTOKEN}}'
}
request(options, function(error, response, body) {
if(error){
}
console.log('posted reply successfully');
});
Hi I using graph API to reply to comment on facebook pages of my customers (it is a SaaS product). Right now I am generating facebook page level access token for mine own and it's working fine for few minutes. But I want to generate page level access token programmatically, so that it does not expire and it is dynamic for different customer's facebook pages. Is there any way I can generate page level access token programmtically for my own facebook page?