Skip to content

Instantly share code, notes, and snippets.

@tradingbills
Created June 17, 2019 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tradingbills/ff2802d75ab5fd4972d02cd9d497cd29 to your computer and use it in GitHub Desktop.
Save tradingbills/ff2802d75ab5fd4972d02cd9d497cd29 to your computer and use it in GitHub Desktop.
fb newsfeed post a share
// win10/_exer/_playground/queryString/index.js
const queryString = require('query-string');
const ef1059 = "https://graph.facebook.com/oauth/authorize?client_id=<client_id>&scope=read_insights,manage_pages,publish_pages,user_posts,publish_actions,publish_to_groups&redirect_uri=https://ui.benchmarkemail.com/FacebookAuthorize"
const myQs = ef1059.split('?');
console.log(queryString.parse(myQs[1], {arrayFormat: 'comma'}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment