Socket
Socket
Sign inDemoInstall

node-facebook-marketing

Package Overview
Dependencies
48
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.17 to 1.0.18

20

libs/index.js

@@ -9,11 +9,6 @@ var request = require('request');

var fbSelf;
var FB = function(options) {
this.options = options;
EventEmitter.call(this);
if(!options['access_token']) {
console.error("access_token must be set");
}
fbSelf = this;
this.access_token = options['access_token'];
OAuth = options['access_token'];
var FB = function() {
this.access_token;
this.client_id;
this.app_id;
}

@@ -98,4 +93,4 @@

var requestURL = BASE + '/oauth/access_token?grant_type=fb_exchange_token&'+
'client_id='+fbSelf.options.app_id+'&client_secret='+fbSelf.options.client_secret+
'&fb_exchange_token='+fbSelf.access_token + '&redirect_uri=' +fbSelf.options.redirect_uri;
'client_id='+fbSelf.app_id+'&client_secret='+fbSelf.client_secret+
'&fb_exchange_token='+fbSelf.access_token + '&redirect_uri=' +fbSelf.redirect_uri;

@@ -110,3 +105,2 @@ request(requestURL, function(err, response, body) {

if(jsonResponse.access_token) {
console.log(jsonResponse['access_token']);
fbSelf.access_token = jsonResponse.accesss_token;

@@ -123,2 +117,2 @@ return cb(true, jsonResponse);

module.exports = FB;
module.exports = new FB();
{
"name": "node-facebook-marketing",
"version": "1.0.17",
"version": "1.0.18",
"description": "Connection to Facebook's Marketing API",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc