/nodejs-realtime-fb

Facebook Real-time Updates integration for NodeJS

Primary LanguageJavaScript

nodejs-realtime-fb

Facebook Real-time Updates integration for NodeJS. You can read more about Facebook Real-time Updates API on https://developers.facebook.com/docs/reference/api/realtime/

The module is built on top of ExpressJS module and also uses 'querystring'.

It exposes 5 basic functions:

  • startListening(ip, port, endpointUrl, facebook_app_id, facebook_app_secret, silent, updatesCallback); It will start the local server that handles the notifications. updatesCallback(data) - will get called everytime facebook will send a notification to your app.
  • subscribe(object, fields, errorCallback);
  • listSubscriptions(object, callback);
  • unsubscribe(object, errorCallback);
  • stopListening();