Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

fb-graph

0.1.3 • Public • Published

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){
        
    });

Install

npm i fb-graph

DownloadsWeekly Downloads

5

Version

0.1.3

License

MIT

Unpacked Size

15.8 kB

Total Files

9

Last publish

Collaborators

  • avatar