title: Facebook Graph API - Ads Insights with different Action Values from Post
body: <p>I'm using facebook Graph API to retrieve action values from campaigns. But the JSON returned is always different from any values from facebook screen.</p>
  
  <p><strong>My Request from JavaScript</strong></p>
  
  <pre><code>var d = new FormData();
  d.append("access_token", "MY_ADS_INSIGHTS_TOKEN");
  d.append("fields", "actions");
  d.append("date_preset", "lifetime"); // I want lifetime data
  
  return await (await fetch("https://graph.facebook.com/v3.1/" + campaignid + "/insights", {
      method: "post",
      body: d
  })).json();
  </code></pre>
  
  <p>and after I access the report insights using the URL: </p>
  
  <p><a href="https://graph.facebook.com/v3.1/REPORT_RUN_ID/insights?access_token=MY_ADS_INSIGHTS_TOKEN" rel="nofollow noreferrer">https://graph.facebook.com/v3.1/REPORT_RUN_ID/insights?access_token=MY_ADS_INSIGHTS_TOKEN</a></p>
  
  <p><strong>JSON returned after access report task</strong></p>
  
  <pre><code>{
     "data": [
        {
           "actions": [
              {
                 "action_type": "comment",
                 "value": "2"
              },
              {
                 "action_type": "like",
                 "value": "4"
              },
              {
                 "action_type": "photo_view",
                 "value": "30"
              },
              {
                 "action_type": "post",
                 "value": "1"
              },
              {
                 "action_type": "link_click",
                 "value": "7"
              },
              {
                 "action_type": "page_engagement",
                 "value": "249"
              },
              {
                 "action_type": "post_engagement",
                 "value": "245"
              },
              {
                 "action_type": "post_reaction",
                 "value": "205"
              }
           ],
           "date_start": "2018-07-09",
           "date_stop": "2018-07-15",
           "ad_id": null // removed
        }
     ],
     "paging": {
        "cursors": {
           "before": "MAZDZD",
           "after": "MAZDZD"
        }
     },
     "__fb_trace_id__": null // removed 
  }
  </code></pre>
  
  <p><strong>Facebook Post Results</strong>
  <a href="https://i.stack.imgur.com/W6BRA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W6BRA.png" alt="enter image description here"></a></p>
  
  <p><strong>I want to know</strong>:</p>
  
  <ul>
  <li>Why Facebook Graph API return the <code>post_reaction</code> as <strong>205</strong> since from facebook view it is <strong>160</strong> or <strong>150</strong>? the value doesn't match anything, happens to action <strong>like</strong> too</li>
  </ul>
  
  <p><strong>Notes</strong>:</p>
  
  <ul>
  <li>I'm not using any SDK, but this isn't the problem.</li>
  <li>The Ad has only <strong>ONE</strong> ads group and the group has only <strong>ONE</strong> campaign</li>
  <li>I make the requisition at the same time as I see the post. There are no major interactions in this post, it is old enough that the values do not change.</li>
  <li>I known that Facebook cache anything, but this Ad is from 10, July.</li>
  <li>Ad Campaign Insights reference: <a href="https://developers.facebook.com/docs/marketing-api/reference/ad-campaign-group/insights/" rel="nofollow noreferrer">https://developers.facebook.com/docs/marketing-api/reference/ad-campaign-group/insights/</a></li>
  <li>I accept answers using SDKs or different programming languages like C#, php or Java as example, I want only know HOW make the right request or what is exactly happening.</li>
  </ul>