title: Getting Text from IResult Facebook SDK, 7.2.0
body: <p>I am trying to get the player's username and then display it.</p>
  
  <p>Recently, there was a breaking changes; IResult replacement for FBResult.</p>
  
  <p>I was able to return a texture from the IGraphResult instead of FBResult, to display the profile picture, so I expect that the Text would be available as well but no.</p>
  
  <p>So my issue is, where can I return the Text from?
  Do I have to add anything to the IGraphResult?</p>
  
  <p>Here is the code,</p>
  
  <pre><code>void DealWithUserName(FBResult result)
  {
      if(result.Error != null)
      {
          Debug.Log ("Problems with getting profile picture");
  
          FB.API ("/me?fields=id,first_name", HttpMethod.GET, DealWithUserName);
          return;
      }
  
      profile = Util.DeserializeJSONProfile(result.Text);
  
      Text UserMsg = UIFBUsername.GetComponent&lt;Text&gt;();
  
      UserMsg.text = "Hello, " + profile["first_name"];
  
  }
  </code></pre>
  
  <p>Edited:
  Okay, I did it.
  It seems that I can also get the username from the IGraphResult.
  So, I changed the FBResult to IGraphResult.
  I changed result.Text to result.RawResult.</p>
  
  <p>Here is the code, for anyone who needs it.</p>
  
  <pre><code>void DealWithUserName(IGraphResult result)
  {
      if(result.Error != null)
      {
          Debug.Log ("Problems with getting profile picture");
  
          FB.API ("/me?fields=id,first_name", HttpMethod.GET, DealWithUserName);
          return;
      }
  
      profile = Util.DeserializeJSONProfile(result.RawResult);
  
      Text UserMsg = UIFBUsername.GetComponent&lt;Text&gt;();
  
      UserMsg.text = "Hello, " + profile["first_name"];
  
  }
  </code></pre>