Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Update FacebookService.cs #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Xamarin.Social/Services/FacebookService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected override Task<string> GetUsernameAsync (IDictionary<string, string> ac

return request.GetResponseAsync ().ContinueWith (reqTask => {
var json = reqTask.Result.GetResponseText ();
var username = GetValueFromJson (json, "username");
var username = GetValueFromJson (json, "name");
if (string.IsNullOrEmpty (username)) {
throw new Exception ("Could not read username from the /me API call");
}
Expand Down