1.0.4 • Published 6 years ago

rx-fb v1.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

rx-fb

Rx wrapper for fb package

Version

1.0.4

Installation

$ npm install rx-fb --save

Usage

'use strict';

const RxFB = require('rx-fb')

let rxfb = new RxFB({
    version:     FACEBOOK_API_VERSION,
    appId:       FACEBOOK_APP_ID,
    appSecret:   FACEBOOK_APP_SECRET,
    accessToken: FACEBOOK_ACCESS_TOKEN
});

let source = rxfb.api('VasaVasaKitchen/posts');

source.subscribe(
    response => console.log(response),
    error    => console.log(error),
    complete => console.log('complete')
);

Avoid Pagination

It's possible to retrive all the edge of a node using the all method

let source = rxfb.all('VasaVasaKitchen/posts');

source.subscribe(
    response => console.log(response),
    error    => console.log(error),
    complete => console.log('complete')
);

License

MIT

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago