title: How to get "daily" video views Facebook API?
body: <p>I have a little experience dealing with Facebook Graph API. I need to get daily views for the video as oppose to lifetime views.</p>
  
  <p>FB API docs don't show this to be an option (<strong>lifetime</strong> - only period param)
  <a href="https://developers.facebook.com/docs/graph-api/reference/video/video_insights/" rel="nofollow noreferrer">https://developers.facebook.com/docs/graph-api/reference/video/video_insights/</a></p>
  
  <p>However, I've seen another post on SO answering this question, yet for some reasons it doesn't work for me
  (<a href="https://stackoverflow.com/questions/46296174/getting-a-video-views-with-facebook-api">Getting a video views with Facebook API</a>).</p>
  
  <p>This is my successful API call which returns lifetime stats as expected:</p>
  
  <pre><code>/{video_id}/video_insights/total_video_views/lifetime
  </code></pre>
  
  <p>This is what I thought I should be doing:</p>
  
  <pre><code>/{video_id}/video_insights/total_video_views/day
  </code></pre>
  
  <p>... but got this error:</p>
  
  <pre><code>{
    "error": {
      "message": "(#100) Invalid parameter",
      "type": "OAuthException",
      "code": 100,
      "error_data": "Daily query is not supported for metric (total_video_views)"
    }
  }
  </code></pre>
  
  <p>Then, as the SO post suggested, I tried different period param:</p>
  
  <pre><code>/{video_id}/video_insights/total_video_views/month
  </code></pre>
  
  <p>... and got this:</p>
  
  <pre><code>{
    "error": {
      "message": "(#100) Invalid parameter",
      "type": "OAuthException",
      "code": 100,
      "error_data": "Period should be either lifetime or day."
    }
  }
  </code></pre>
  
  <p>... which tells that <strong>day</strong> should be acceptable param just like <strong>lifetime</strong></p>
  
  <p>Eventually, just for fun, I thought I'll pass "wrong" param - <strong>Day</strong>:</p>
  
  <pre><code>/{video_id}/video_insights/total_video_views/Day
  </code></pre>
  
  <p>... and got this:</p>
  
  <pre><code>{
    "error": {
      "message": "(#100) For field 'video_insights': period must be one of the following values: day, week, days_28, month, lifetime",
      "type": "OAuthException",
      "code": 100
    }
  }
  </code></pre>
  
  <p>This states that all of these values are good (<strong>day</strong>, <strong>week</strong>, <strong>days_28</strong>, <strong>month</strong>, <strong>lifetime</strong>), yet they don't work.</p>
  
  <p>I'm really confused here. I saw daily break down for a video views on FB webpage/insights and thought it should be possible to do the same through the API.</p>
  
  <p>What am i doing wrong?</p>