Facebook Graph Client
This module is for interacting with the facebook graph API.
Methods
require('facebook-graph-client').createClient([access_token])
Creates a new client. Optionally sets the access_token
property of the client to the value of access_token
.
Client
client.post_object(obj, [args], [callback])
- Obj: String
- Args: Object (optional)
- Callback: Function(err, res, json) (optional)
client.delete_object(obj, [args], [callback])
- Obj: String
- Args: Object (optional)
- Callback: Function(err, res, json) (optional)
client.get_object(obj, [args], [callback])
- Obj: String
- Args: Object (optional)
- Callback: Function(err, res, json) (optional)
client.get_objects(objs, [args], [callback])
- Objs: String[]
- Args: Object (optional)
- Callback: Function(err, res, json) (optional)
client.get_connection(obj, connection, [args], [callback])
- Obj: String
- Connection: String
- Args: Object (optional)
- Callback: Function(err, res, json) (optional)
client.post_connection(obj, connection, [args], [callback])
- Obj: String
- Connection: String
- Args: Object (optional)
- Callback: Function(err, res, json) (optional)
License
See LICENSE.md
Issues
Bug patches and reports are welcome, please create an issue in the issue tracker on github for them.