0

I already have this method to post on a facebook page

exports.publish = function(fbToken, post){
    return new Promise(function (resolve, reject){
        FB.setAccessToken(fbToken);

        FB.api('me/feed', 'post', {message: post.text})
            .then(function(response) {
                resolve(response.id) 
            })
            .catch(function(error) {
                    reject(error)
            });
    })
}

However, I would like to boost a post and set some kind of audience, budget, and duration, but I can not find the way.

I've been reading: https://developers.facebook.com/docs/marketing-apis But How can I set the custom boost in a specific post?

DannSaHa
  • 237
  • 1
  • 4
  • 16

1 Answers1

0

I am adding from my answer over here Only difference is you will have to call those API's in node js. The requirements and the way to boost the post will remain the same.

From the Facebook docs :

For creating an ad from Page post ( boosting a post ), you will first need to create the creative for that ad from the post. See the doc page on how to create ad adcreatives. Search for Create an ad from an existing page post

After that you will need to create an ad using that creative ad. Creating ads from API with creative id

Hope that helps !

TheVigilant
  • 720
  • 8
  • 16