title: How to call Microsoft Graph Beta API from C#
body: <p>I tried to get the content of the user's profile picture and I found out that I had to call the Beta version because the current version gives the following error message:</p>
  
  <pre><code>"code": "GetUserPhoto",
  "message": "The operation is not supported."
  </code></pre>
  
  <p>So, I tried to switch to Beta, and here is the code that I wrote in C# to do it, but it doesn't work:</p>
  
  <p>Microsoft.Graph 1.6.2</p>
  
  <pre><code>List&lt;QueryOption&gt; options = new List&lt;QueryOption&gt;
  {
      new QueryOption("$api-version", "beta")
  };
  
  var pictureStream = await graphClient.Me.Photo.Content.Request(options).GetAsync();
  </code></pre>
  
  <p>I got the same error message. </p>
  
  <p>I tried the same request in the Graph Explorer. The 1.0 doesn't work, but Beta works. </p>