Advertisement
vinic1nburr1n

Untitled

Sep 23rd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. const FB = require('fb');
  2. FB.setAccessToken('my token is actually here, i just replace it with this text lmao');
  3.  
  4. let postContents = 'Hello World!';
  5. FB.api('me/feed', 'post', { message: postContents }, res => {
  6. if (!res || res.error) {
  7. return console.error(!res ? 'error occurred' : res.error);
  8. }
  9. console.log(`Post ID: ${res.id}`);
  10. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement