title: Error while getting Contacts from Microsoft graph api
body: <p>I am trying to fetch a user's Contacts using the <a href="https://github.com/microsoftgraph/ios-swift-connect-sample" rel="nofollow noreferrer">Microsoft Graph SDK</a>. I am able to get the user details using <code>graphClient.me()</code>, but when I try to get a list of contacts I am getting an error:</p>
  
  <pre><code>Graph SDK ERROR : 
    Error from data task : 
      Error Domain=com.microsoft.graph.errors 
      Code=400 "bad request" 
      UserInfo={
        NSLocalizedDescription=bad request, 
        error= AuthenticationError : Error authenticating with resource
      }
  
  Graph SDK ERROR : Caused by request &lt;NSMutableURLRequest: 0x1738bc70&gt; { 
    URL: https://graph.microsoft.com/v1.0/me/contacts 
  }
  </code></pre>
  
  <p>My Code:</p>
  
  <pre class="lang-c prettyprint-override"><code>self.graphClient.me().contacts().request().getWithCompletion {
    (_ contacts: MSCollection?,
     _ nextRequest: MSGraphUserContactsCollectionRequest?,
     _ error: Error?) in
  
      if error == nil {
          print("contacts \(contacts)")
      }
      else {
          print("error \(error?.localizedDescription)")
      }
  }
  </code></pre>
  
  <p>My Scopes:</p>
  
  <pre class="lang-c prettyprint-override"><code>let SCOPES   = ["openid", "profile","User.Read","Contacts.Read"]
  </code></pre>