(async () => { const axios = require('axios') const config = { redirect_uri: 'https://..../callback', client_id: '978620.....', client_secret: 'f50fcd29bb66.............', } // Usage // $ node none_expired_token.js $FB_ACCESS_TOKEN // // $FB_ACCESS_TOKEN as User Access Token from // https://developers.facebook.com/tools/explorer const fb_exchange_token = process.argv[2] // main const client = axio
