I want to create html on the fly by replacing some links in a HTML template. I will get these links from DB and publish facebook instant articles in bulk.
`
FB.api('599265696800679/instant_articles', 'post', { html_source:html_source , development_mode:true }, function (res) {
if(!res || res.error) {
console.log(!res ? 'error occurred' : res.error);
return;
}
console.log('Post Id: ' + res.id);
});
`
Any ideas on how should I approach to create html_source automatically with new link ?