FacebookHelper Class¶
Contains static methods that allow to extract user’s information from a Newtonsoft.Json.Linq.JObject
instance retrieved from Facebook after a successful authentication process.
- Namespace
Microsoft.AspNetCore.Authentication.Facebook
- Assemblies
- Microsoft.AspNetCore.Authentication.Facebook
Syntax¶
public class FacebookHelper
-
class
Microsoft.AspNetCore.Authentication.Facebook.
FacebookHelper
Methods¶
-
GetAgeRangeMax
(Newtonsoft.Json.Linq.JObject)¶ Gets the user’s max age.
Return type: System.String public static string GetAgeRangeMax(JObject user)
-
GetAgeRangeMin
(Newtonsoft.Json.Linq.JObject)¶ Gets the user’s min age.
Return type: System.String public static string GetAgeRangeMin(JObject user)
-
GetBirthday
(Newtonsoft.Json.Linq.JObject)¶ Gets the user’s birthday.
Return type: System.String public static string GetBirthday(JObject user)
-
GetEmail
(Newtonsoft.Json.Linq.JObject)¶ Gets the Facebook email.
Return type: System.String public static string GetEmail(JObject user)
-
GetFirstName
(Newtonsoft.Json.Linq.JObject)¶ Gets the user’s first name.
Return type: System.String public static string GetFirstName(JObject user)
-
GetGender
(Newtonsoft.Json.Linq.JObject)¶ Gets the user’s gender.
Return type: System.String public static string GetGender(JObject user)
-
GetId
(Newtonsoft.Json.Linq.JObject)¶ Gets the Facebook user ID.
Return type: System.String public static string GetId(JObject user)
-
GetLastName
(Newtonsoft.Json.Linq.JObject)¶ Gets the user’s family name.
Return type: System.String public static string GetLastName(JObject user)
-
GetLink
(Newtonsoft.Json.Linq.JObject)¶ Gets the user’s link.
Return type: System.String public static string GetLink(JObject user)
-
GetLocale
(Newtonsoft.Json.Linq.JObject)¶ Gets the user’s locale.
Return type: System.String public static string GetLocale(JObject user)
-
GetLocation
(Newtonsoft.Json.Linq.JObject)¶ Gets the user’s location.
Return type: System.String public static string GetLocation(JObject user)
-
GetMiddleName
(Newtonsoft.Json.Linq.JObject)¶ Gets the user’s middle name.
Return type: System.String public static string GetMiddleName(JObject user)
-
GetName
(Newtonsoft.Json.Linq.JObject)¶ Gets the user’s name.
Return type: System.String public static string GetName(JObject user)
-
GetTimeZone
(Newtonsoft.Json.Linq.JObject)¶ Gets the user’s timezone.
Return type: System.String public static string GetTimeZone(JObject user)
-