C# Class FacebookSharp.FacebookAuthenticationResult

Datei anzeigen Open project: prabirshrestha/FacebookSharp

Public Methods

Method Description
FacebookAuthenticationResult ( ) : System
FacebookAuthenticationResult ( object>.IDictionary data ) : System
FacebookAuthenticationResult ( string>.IDictionary data ) : System
FacebookAuthenticationResult ( string accessToken, long expiresIn, string errorReasonText ) : System
Parse ( string url ) : FacebookAuthenticationResult
Parse ( string url, FacebookSettings facebookSettings ) : FacebookAuthenticationResult
ValidateSignedRequest ( string signedRequest, string applicationSecret, object>.IDictionary &jsonObject ) : bool

Validates facebook signed_request using the applicationSecret.

Private Methods

Method Description
FromUrlBase64String ( string Base64UrlSafe ) : byte[]
SignWithHmac ( byte dataToSign, byte keyBody ) : byte[]
ToUrlBase64String ( byte Input ) : string

Method Details

FacebookAuthenticationResult() public method

public FacebookAuthenticationResult ( ) : System
return System

FacebookAuthenticationResult() public method

public FacebookAuthenticationResult ( object>.IDictionary data ) : System
data object>.IDictionary
return System

FacebookAuthenticationResult() public method

public FacebookAuthenticationResult ( string>.IDictionary data ) : System
data string>.IDictionary
return System

FacebookAuthenticationResult() public method

public FacebookAuthenticationResult ( string accessToken, long expiresIn, string errorReasonText ) : System
accessToken string
expiresIn long
errorReasonText string
return System

Parse() public static method

public static Parse ( string url ) : FacebookAuthenticationResult
url string
return FacebookAuthenticationResult

Parse() public static method

public static Parse ( string url, FacebookSettings facebookSettings ) : FacebookAuthenticationResult
url string
facebookSettings FacebookSettings
return FacebookAuthenticationResult

ValidateSignedRequest() public static method

Validates facebook signed_request using the applicationSecret.
public static ValidateSignedRequest ( string signedRequest, string applicationSecret, object>.IDictionary &jsonObject ) : bool
signedRequest string /// The signed request. ///
applicationSecret string /// The application secret. ///
jsonObject object>.IDictionary /// The json object if validation passes, else null. ///
return bool