README FILE FOR fbPost Node.JS Module.
Author: Navin Prakash, Contact: navinprakash.in@live.com
Pre-Requisites.
- This is not an npm module. So you need to manually copy the master.js and wallpost.js file inside your application
- Install the npm module fbgraph. This is internally used by my node module to make calls to FB Graph API.
- You need to have an access token from FB with the required permission. Read the FB Graph API documentation for more details.
Usage You need to have a JSON input structure ready like this
var InputJSON ={
URL : 'Place the image URL here',
caption : "put the caption for the image here",
ACCESS_TOKEN :'PLACE THE ACQUIRED FB ACCCESS TOKEN HERE'
};
Now Pass this input JSON as an argument to the post() function of master.js
The JSON provides the flexibility for the input to be provided so that automated Backends can use it for posting images. The JSON could be framed in runtime, and passed to the function post() function of master.js file. It is for the Back-end to take care to call this function as a response to some event.