Skip to content

Jbnado/facebook_post_nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Post messages with images in facebook page

Install

  • In src/config/config.ts you need to put the page_id of your page and access_token from graph api.

  • nodejs 16.14.2 +

    npm i
    npm start
  • server will run in localhost:3000/post. You need to pass an text that will be the message of post and an image url.

    example:

    {
    	"text": "Post Message",
    	"image": "imageurl"
    }
  • You will get the id of photo as id and the id of the post as id_post.

After get this id_post you are able to get metrics using this url: localhost:3000/post/:id Passing as a parameter an id_post

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published