C# 클래스 Facebook.FacebookOAuthClient

Represents the Facebook OAuth Helpers
파일 보기 프로젝트 열기: anujb/MonoMobile.Facebook 1 사용 예제들

Private Properties

프로퍼티 타입 설명
BuildApplicationAccessTokenParameters object>.IDictionary
BuildApplicationAccessTokenResult object
BuildExchangeCodeForAccessTokenParameters object>.IDictionary
BuildExchangeCodeForAccessTokenResult object
DownloadDataCompleted void
GetApiEventArgs Facebook.FacebookApiEventArgs

공개 메소드들

메소드 설명
ExchangeCodeForAccessToken ( string code ) : object

Exchange code for access token.

ExchangeCodeForAccessToken ( string code, object>.IDictionary parameters ) : object

Exchange code for access token.

ExchangeCodeForAccessTokenAsync ( string code ) : void

Exchange code for access token asynchronously.

ExchangeCodeForAccessTokenAsync ( string code, object>.IDictionary parameters ) : void

Exchange code for access token asynchronously.

ExchangeCodeForAccessTokenAsync ( string code, object>.IDictionary parameters, object userToken ) : void

Exchange code for access token asynchronously.

FacebookOAuthClient ( ) : System

Initializes a new instance of the FacebookOAuthClient class.

FacebookOAuthClient ( IFacebookApplication facebookApplication ) : System

Initializes a new instance of the FacebookOAuthClient class.

GetApplicationAccessToken ( ) : object

Gets the application access token.

GetApplicationAccessToken ( object>.IDictionary parameters ) : object

Gets the application access token.

GetApplicationAccessTokenAsync ( ) : void

Gets the application access token asynchronously.

GetApplicationAccessTokenAsync ( object>.IDictionary parameters, object userToken ) : void

Gets the application access token asynchronously.

GetApplicationAccessTokenAsync ( object userToken ) : void

Gets the application access token asynchronously.

GetLoginUrl ( ) : Uri

Gets the login uri.

GetLoginUrl ( object>.IDictionary parameters ) : Uri

Gets the login uri.

http://developers.facebook.com/docs/reference/dialogs/oauth Parameters that can be used: client_id : Your application's identifier. This is called client_id instead of app_id for this particular method to be compliant with the OAuth 2.0 specification. Required, but automatically specified by most SDKs. redirect_uri : The URL to redirect to after the user clicks a button on the dialog. Required, but automatically specified by most SDKs. scope : Optional. A comma-delimited list of permissions. state : Optional. An opaque string used to maintain application state between the request and callback. When Facebook redirects the user back to your redirect_uri, this value will be included unchanged in the response. response_type : Optional, default is token. The requested response: an access token (token), an authorization code (code), or both (code_and_token). display : The display mode in which to render the dialog. The default is page on the www subdomain and wap on the m subdomain. This is automatically specified by most SDKs. (For WP7 builds it is set to touch.)

GetLoginUrl ( string appId, Uri redirectUri ) : Uri

Gets the login url.

GetLoginUrl ( string appId, Uri redirectUri, string extendedPermissions ) : Uri

Gets the login url.

GetLoginUrl ( string appId, Uri redirectUri, string extendedPermissions, object>.IDictionary loginParameters ) : Uri

Gets the login url.

GetLoginUrl ( string appId, Uri redirectUri, string extendedPermissions, bool logout, object>.IDictionary loginParameters ) : Uri

Gets the login url.

GetLogoutUrl ( ) : Uri

Gets the logout url.

GetLogoutUrl ( object>.IDictionary parameters ) : Uri

Gets the logout url.

보호된 메소드들

메소드 설명
GetUrl ( string name, string path, object>.IDictionary parameters ) : Uri

Build the URL for given domain alias, path and parameters.

OAuthRequest ( string name, string path, object>.IDictionary parameters ) : string
OAuthRequestAsync ( string name, string path, object>.IDictionary parameters, object userToken, string>.Func processResponseString, FacebookApiEventArgs>.Action onDownloadComplete ) : void

비공개 메소드들

메소드 설명
BuildApplicationAccessTokenParameters ( object>.IDictionary parameters, string &name, string &path ) : object>.IDictionary
BuildApplicationAccessTokenResult ( string responseString ) : object
BuildExchangeCodeForAccessTokenParameters ( object>.IDictionary parameters, string &name, string &path ) : object>.IDictionary
BuildExchangeCodeForAccessTokenResult ( string json ) : object
DownloadDataCompleted ( object sender, DownloadDataCompletedEventArgsWrapper e, string>.Func processResponseString, FacebookApiEventArgs>.Action onDownloadComplete ) : void
GetApiEventArgs ( AsyncCompletedEventArgs e, string json, Facebook.HttpMethod &httpMethod ) : Facebook.FacebookApiEventArgs

메소드 상세

ExchangeCodeForAccessToken() 공개 메소드

Exchange code for access token.
public ExchangeCodeForAccessToken ( string code ) : object
code string /// The code. ///
리턴 object

ExchangeCodeForAccessToken() 공개 메소드

Exchange code for access token.
public ExchangeCodeForAccessToken ( string code, object>.IDictionary parameters ) : object
code string /// The code. ///
parameters object>.IDictionary /// The parameters. ///
리턴 object

ExchangeCodeForAccessTokenAsync() 공개 메소드

Exchange code for access token asynchronously.
public ExchangeCodeForAccessTokenAsync ( string code ) : void
code string /// The code. ///
리턴 void

ExchangeCodeForAccessTokenAsync() 공개 메소드

Exchange code for access token asynchronously.
public ExchangeCodeForAccessTokenAsync ( string code, object>.IDictionary parameters ) : void
code string /// The code. ///
parameters object>.IDictionary /// The parameters. ///
리턴 void

ExchangeCodeForAccessTokenAsync() 공개 메소드

Exchange code for access token asynchronously.
public ExchangeCodeForAccessTokenAsync ( string code, object>.IDictionary parameters, object userToken ) : void
code string /// The code. ///
parameters object>.IDictionary /// The parameters. ///
userToken object /// The user token. ///
리턴 void

FacebookOAuthClient() 공개 메소드

Initializes a new instance of the FacebookOAuthClient class.
public FacebookOAuthClient ( ) : System
리턴 System

FacebookOAuthClient() 공개 메소드

Initializes a new instance of the FacebookOAuthClient class.
public FacebookOAuthClient ( IFacebookApplication facebookApplication ) : System
facebookApplication IFacebookApplication /// The facebook application. ///
리턴 System

GetApplicationAccessToken() 공개 메소드

Gets the application access token.
public GetApplicationAccessToken ( ) : object
리턴 object

GetApplicationAccessToken() 공개 메소드

Gets the application access token.
public GetApplicationAccessToken ( object>.IDictionary parameters ) : object
parameters object>.IDictionary /// The parameters. ///
리턴 object

GetApplicationAccessTokenAsync() 공개 메소드

Gets the application access token asynchronously.
public GetApplicationAccessTokenAsync ( ) : void
리턴 void

GetApplicationAccessTokenAsync() 공개 메소드

Gets the application access token asynchronously.
public GetApplicationAccessTokenAsync ( object>.IDictionary parameters, object userToken ) : void
parameters object>.IDictionary /// The parameters. ///
userToken object /// The user token. ///
리턴 void

GetApplicationAccessTokenAsync() 공개 메소드

Gets the application access token asynchronously.
public GetApplicationAccessTokenAsync ( object userToken ) : void
userToken object /// The user token. ///
리턴 void

GetLoginUrl() 공개 메소드

Gets the login uri.
public GetLoginUrl ( ) : Uri
리턴 System.Uri

GetLoginUrl() 공개 메소드

Gets the login uri.
http://developers.facebook.com/docs/reference/dialogs/oauth Parameters that can be used: client_id : Your application's identifier. This is called client_id instead of app_id for this particular method to be compliant with the OAuth 2.0 specification. Required, but automatically specified by most SDKs. redirect_uri : The URL to redirect to after the user clicks a button on the dialog. Required, but automatically specified by most SDKs. scope : Optional. A comma-delimited list of permissions. state : Optional. An opaque string used to maintain application state between the request and callback. When Facebook redirects the user back to your redirect_uri, this value will be included unchanged in the response. response_type : Optional, default is token. The requested response: an access token (token), an authorization code (code), or both (code_and_token). display : The display mode in which to render the dialog. The default is page on the www subdomain and wap on the m subdomain. This is automatically specified by most SDKs. (For WP7 builds it is set to touch.)
public GetLoginUrl ( object>.IDictionary parameters ) : Uri
parameters object>.IDictionary /// The parameters. ///
리턴 System.Uri

GetLoginUrl() 공개 정적인 메소드

Gets the login url.
public static GetLoginUrl ( string appId, Uri redirectUri ) : Uri
appId string /// The app id. ///
redirectUri System.Uri /// The redirect Uri. ///
리턴 System.Uri

GetLoginUrl() 공개 정적인 메소드

Gets the login url.
public static GetLoginUrl ( string appId, Uri redirectUri, string extendedPermissions ) : Uri
appId string /// The app id. ///
redirectUri System.Uri /// The redirect Uri. ///
extendedPermissions string /// The extended permissions (scope). ///
리턴 System.Uri

GetLoginUrl() 공개 정적인 메소드

Gets the login url.
public static GetLoginUrl ( string appId, Uri redirectUri, string extendedPermissions, object>.IDictionary loginParameters ) : Uri
appId string /// The app id. ///
redirectUri System.Uri /// The redirect Uri. ///
extendedPermissions string /// The extended permissions (scope). ///
loginParameters object>.IDictionary /// The login parameters. ///
리턴 System.Uri

GetLoginUrl() 공개 정적인 메소드

Gets the login url.
public static GetLoginUrl ( string appId, Uri redirectUri, string extendedPermissions, bool logout, object>.IDictionary loginParameters ) : Uri
appId string /// The app id. ///
redirectUri System.Uri /// The redirect Uri. ///
extendedPermissions string /// The extended permissions (scope). ///
logout bool /// Indicates whether to logout existing logged in user or not. ///
loginParameters object>.IDictionary /// The login parameters. ///
리턴 System.Uri

GetLogoutUrl() 공개 메소드

Gets the logout url.
public GetLogoutUrl ( ) : Uri
리턴 System.Uri

GetLogoutUrl() 공개 메소드

Gets the logout url.
public GetLogoutUrl ( object>.IDictionary parameters ) : Uri
parameters object>.IDictionary /// The parameters. ///
리턴 System.Uri

GetUrl() 보호된 메소드

Build the URL for given domain alias, path and parameters.
protected GetUrl ( string name, string path, object>.IDictionary parameters ) : Uri
name string /// The name of the domain (from the domain maps). ///
path string /// Optional path (without a leading slash) ///
parameters object>.IDictionary /// Optional query parameters ///
리턴 System.Uri

OAuthRequest() 보호된 메소드

protected OAuthRequest ( string name, string path, object>.IDictionary parameters ) : string
name string
path string
parameters object>.IDictionary
리턴 string

OAuthRequestAsync() 보호된 메소드

protected OAuthRequestAsync ( string name, string path, object>.IDictionary parameters, object userToken, string>.Func processResponseString, FacebookApiEventArgs>.Action onDownloadComplete ) : void
name string
path string
parameters object>.IDictionary
userToken object
processResponseString string>.Func
onDownloadComplete FacebookApiEventArgs>.Action
리턴 void