-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWAIT #123
Comments
use bluebird to "promisify" the graph calls and use Promises instead of callbacks! |
Or using |
Like @Twisterking said, use const Promise = require('bluebird'),
graph = Promise.promisifyAll(require('fbgraph'));
graph.setVersion('2.11');
graph.setOptions({...some options...});
async function getFeed(page_id) {
const feed = await graph.getAsync(`/${page_id}/feed`);
} |
Thanks @ffflabs your solution helped a lot. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey guys, sorry, I'm new to NodeJS. Is there any way to await for a post call??
The text was updated successfully, but these errors were encountered: