title: How to calculate Estimated Daily Reach using fb api
body: <p>I want to show the daily estimated reach using fb api.</p>
  
  <p>I have tried below code :-</p>
  
  <pre><code>$ch = curl_init();
     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
     curl_setopt($ch, CURLOPT_TIMEOUT, 60);
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
     curl_setopt($ch, CURLOPT_USERAGENT, 'facebook');
  
  $url_en = urlencode("{'geo_locations':{'countries': ['US'],},'age_min':20,'age_max':24}");
  
  
     curl_setopt($ch, CURLOPT_URL, "https://graph.facebook.com/v2.2/act_1375199556085956/reachestimate?access_token=ACCESS TOKEN&amp;targeting_spec=".$url_en);
  
     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,  2);
     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
     curl_setopt($ch, CURLOPT_HEADER, 0);
     //curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  
     $data = curl_exec($ch);
  </code></pre>
  
  <p>But getting the response data below :-</p>
  
  <pre><code>"data": {
        "users": 14600000,
        "bid_estimations": [
           {
              "unsupported": false,
              "location": 3,
              "cpa_min": 79,
              "cpa_median": 145,
              "cpa_max": 195,
              "cpc_min": 45,
              "cpc_median": 70,
              "cpc_max": 87,
              "cpm_min": 8,
              "cpm_median": 20,
              "cpm_max": 27
           }
        ],
        "estimate_ready": true
     }
  }
  </code></pre>
  
  <p>BUT, I want result like:</p>
  
  <p><img src="https://i.stack.imgur.com/DZquF.png" alt="enter image description here"></p>
  
  <p>Please help me with this.</p>