Socket
Socket
Sign inDemoInstall

fb-graph

Package Overview
Dependencies
47
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fb-graph

For Facebook graph API and Marketing Api, with normalised querying and responses


Version published
Weekly downloads
26
decreased by-61.19%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

fb-graph

	npm install fb-graph --save

Usage

	var FB = require("fb-graph");
	var config = {
		token:token,
		graphV:"2.7"
	};
	// global fb query object
	var fb = new FB(config)
	var options = {
	  accountId:"AcocuntID",
	  startDate:"2017-01-01",
	  endDate:"2017-01-02",
	  dimensions:[
	  	"day::time_increment",
	  	"account_name::level",
	  ],
	  metrics:[
	  	"spend",
	  	"clicks",
	  	"purchases::actions"
	  ],
	  attributionWindow:["7d_click"],
	  attributionType:"conversion"
	};
	fb.createAdsReport(options).run(function(err,rows){
		
	});

Keywords

FAQs

Last updated on 23 Dec 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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