C# 클래스 FacebookSharp.Facebook

파일 보기 프로젝트 열기: prabirshrestha/FacebookSharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Expires string
Token string

보호된 프로퍼티들

프로퍼티 타입 설명
_apiBaseUrl string
_graphBaseUrl string
_oauthEndpoint string

Private Properties

프로퍼티 타입 설명
ExecuteGraphApiAsync void
ExecuteGraphApiAsync void
GetUsingRestApi string
GetUsingRestApi string
GetUsingRestApiAsync void
GetUsingRestApiAsync void

공개 메소드들

메소드 설명
DeleteAsync ( string graphPath, Action callback ) : void

Makes an asynchronous request to the Facebook Graph API to delete a graph object.

See http://developers.facebook.com/docs/api Note that this method is asynchronous. This method will not block waiting for a network response. To delete objects in the graph, provide "/id", which will delete http://graph.facebook.com/id You can delete a like by providing /POST_ID/likes (since likes don't have an ID).

DeleteAsync ( string graphPath, string>.IDictionary parameters, Action callback ) : void

Makes an asynchronous request to the Facebook Graph API to delete a graph object.

See http://developers.facebook.com/docs/api Note that this method is asynchronous. This method will not block waiting for a network response. To delete objects in the graph, provide "/id", which will delete http://graph.facebook.com/id You can delete a like by providing /POST_ID/likes (since likes don't have an ID).

ExchangeAccessTokenForCode ( string code, long &expiresIn ) : string
ExchangeAccessTokenForCode ( string code, string applicationKey, string applicationSecret, string postAuthorizeUrl, string userAgent, long &expiresIn ) : string
Facebook ( ) : System

Initializes a new instance of the Facebook class.

Facebook ( FacebookSettings facebookSettings ) : System

Initializes a new instance of the Facebook class.

Facebook ( string accessToken ) : System

Initializes a new instance of the Facebook class.

Facebook ( string accessToken, long expiresIn ) : System

Initializes a new instance of the Facebook class.

GenerateFacebookAuthorizeUrl ( string facebookApplicationKey, string redirectUri, string extendedPermissions ) : string

Returns the url to authenticate with Facebook.

GenerateFacebookLoginStatusUrl ( string>.IDictionary parameters ) : string

Returns the url to check the login status of Facebook.

GenerateFacebookLoginUrl ( string>.IDictionary parameters ) : string

Returns the url to login with Facebook.

GenerateFacebookLoginUrl ( string>.IDictionary parameters, string extendedPermissions ) : string

Returns the url to login with Facebook.

GenerateFacebookLogoutUrl ( string>.IDictionary parameters ) : string

Returns the url to logout of Facebook.

GetAsync ( string graphPath, Action callback ) : void

Make an asynchronous request to the Facebook Graph API.

See http://developers.facebook.com/docs/api Note that this method is asynchronous. This method will not block waiting for a network response. To fetch data about the currently logged authenticated user, provide "/me", which will fetch http://graph.facebook.com/me To fetch data about the currently logged authenticated user, provide "/me", which will fetch http://graph.facebook.com/me

GetAsync ( string graphPath, string>.IDictionary parameters, Action callback ) : void

Make an asynchronous request to the Facebook Graph API with the given string parameters.

See http://developers.facebook.com/docs/api Note that this method is asynchronous. This method will not block waiting for a network response. To fetch data about the currently logged authenticated user, provide "/me", which will fetch http://graph.facebook.com/me For parameters: key-value string parameters, e.g. the path "search" with parameters "q" : "facebook" would produce a query for the following graph resource: https://graph.facebook.com/search?q=facebook

GetAsync ( string graphPath, string>.IDictionary parameters, bool addAccessToken, Action callback ) : void

Make an async request to the Facebook Graph API with the given string parameters.

See http://developers.facebook.com/docs/api Note that this method is asynchronous. This method will not block waiting for a network response. To fetch data about the currently logged authenticated user, provide "/me", which will fetch http://graph.facebook.com/me For parameters: key-value string parameters, e.g. the path "search" with parameters "q" : "facebook" would produce a query for the following graph resource: https://graph.facebook.com/search?q=facebook

IsSessionValid ( ) : bool

Checks whether this object has an non-expired session token.

PostAsync ( string graphPath, string>.IDictionary parameters, Action callback ) : void

Publish to the Facebook Graph API.

See http://developers.facebook.com/docs/api Note that this method is asynchronous. This method will not block waiting for a network response. To post to the wall of the currently logged authenticated user, provide "/me/feed", which will make a request to http://graph.facebook.com/me/feed For parameters: key-value string parameters, e.g. parameters "message" : "this is a message" would produce the follwing parameters message=this is a message

SetAccessExpiresIn ( string expiresIn ) : void

Set the current session's duration (in seconds since Unix epoch).

비공개 메소드들

메소드 설명
ExecuteGraphApiAsync ( Method httpMethod, string graphPath, string>.IDictionary parameters, bool addAccessToken, Action callback ) : void
ExecuteGraphApiAsync ( RestRequest request, bool addAccessToken, string userAgent, Action callback ) : void
GetUsingRestApi ( string methodName, string>.IDictionary parameters ) : string
GetUsingRestApi ( string methodName, string>.IDictionary parameters, bool addAccessToken ) : string
GetUsingRestApiAsync ( string methodName, string>.IDictionary parameters, Action callback ) : void
GetUsingRestApiAsync ( string methodName, string>.IDictionary parameters, bool addAccessToken, Action callback ) : void

메소드 상세

DeleteAsync() 공개 메소드

Makes an asynchronous request to the Facebook Graph API to delete a graph object.
See http://developers.facebook.com/docs/api Note that this method is asynchronous. This method will not block waiting for a network response. To delete objects in the graph, provide "/id", which will delete http://graph.facebook.com/id You can delete a like by providing /POST_ID/likes (since likes don't have an ID).
public DeleteAsync ( string graphPath, Action callback ) : void
graphPath string /// Path to the resource in the Facebook graph. ///
callback Action /// The callback. ///
리턴 void

DeleteAsync() 공개 메소드

Makes an asynchronous request to the Facebook Graph API to delete a graph object.
See http://developers.facebook.com/docs/api Note that this method is asynchronous. This method will not block waiting for a network response. To delete objects in the graph, provide "/id", which will delete http://graph.facebook.com/id You can delete a like by providing /POST_ID/likes (since likes don't have an ID).
public DeleteAsync ( string graphPath, string>.IDictionary parameters, Action callback ) : void
graphPath string /// Path to the resource in the Facebook graph. ///
parameters string>.IDictionary /// key-value string parameters. ///
callback Action /// The callback. ///
리턴 void

ExchangeAccessTokenForCode() 공개 메소드

public ExchangeAccessTokenForCode ( string code, long &expiresIn ) : string
code string
expiresIn long
리턴 string

ExchangeAccessTokenForCode() 공개 정적인 메소드

public static ExchangeAccessTokenForCode ( string code, string applicationKey, string applicationSecret, string postAuthorizeUrl, string userAgent, long &expiresIn ) : string
code string
applicationKey string
applicationSecret string
postAuthorizeUrl string
userAgent string
expiresIn long
리턴 string

Facebook() 공개 메소드

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

Facebook() 공개 메소드

Initializes a new instance of the Facebook class.
public Facebook ( FacebookSettings facebookSettings ) : System
facebookSettings FacebookSettings /// The facebook settings. ///
리턴 System

Facebook() 공개 메소드

Initializes a new instance of the Facebook class.
public Facebook ( string accessToken ) : System
accessToken string /// The access token. ///
리턴 System

Facebook() 공개 메소드

Initializes a new instance of the Facebook class.
public Facebook ( string accessToken, long expiresIn ) : System
accessToken string /// The access token. ///
expiresIn long /// The expires in. ///
리턴 System

GenerateFacebookAuthorizeUrl() 공개 정적인 메소드

Returns the url to authenticate with Facebook.
public static GenerateFacebookAuthorizeUrl ( string facebookApplicationKey, string redirectUri, string extendedPermissions ) : string
facebookApplicationKey string
redirectUri string
extendedPermissions string
리턴 string

GenerateFacebookLoginStatusUrl() 공개 정적인 메소드

Returns the url to check the login status of Facebook.
public static GenerateFacebookLoginStatusUrl ( string>.IDictionary parameters ) : string
parameters string>.IDictionary
리턴 string

GenerateFacebookLoginUrl() 공개 정적인 메소드

Returns the url to login with Facebook.
public static GenerateFacebookLoginUrl ( string>.IDictionary parameters ) : string
parameters string>.IDictionary
리턴 string

GenerateFacebookLoginUrl() 공개 정적인 메소드

Returns the url to login with Facebook.
public static GenerateFacebookLoginUrl ( string>.IDictionary parameters, string extendedPermissions ) : string
parameters string>.IDictionary
extendedPermissions string
리턴 string

GenerateFacebookLogoutUrl() 공개 정적인 메소드

Returns the url to logout of Facebook.
public static GenerateFacebookLogoutUrl ( string>.IDictionary parameters ) : string
parameters string>.IDictionary
리턴 string

GetAsync() 공개 메소드

Make an asynchronous request to the Facebook Graph API.
See http://developers.facebook.com/docs/api Note that this method is asynchronous. This method will not block waiting for a network response. To fetch data about the currently logged authenticated user, provide "/me", which will fetch http://graph.facebook.com/me To fetch data about the currently logged authenticated user, provide "/me", which will fetch http://graph.facebook.com/me
public GetAsync ( string graphPath, Action callback ) : void
graphPath string /// Path to the resource in the Facebook graph. ///
callback Action /// The callback. ///
리턴 void

GetAsync() 공개 메소드

Make an asynchronous request to the Facebook Graph API with the given string parameters.
See http://developers.facebook.com/docs/api Note that this method is asynchronous. This method will not block waiting for a network response. To fetch data about the currently logged authenticated user, provide "/me", which will fetch http://graph.facebook.com/me For parameters: key-value string parameters, e.g. the path "search" with parameters "q" : "facebook" would produce a query for the following graph resource: https://graph.facebook.com/search?q=facebook
public GetAsync ( string graphPath, string>.IDictionary parameters, Action callback ) : void
graphPath string /// Path to the resource in the Facebook graph. ///
parameters string>.IDictionary /// key-value string parameters. ///
callback Action /// The callback. ///
리턴 void

GetAsync() 공개 메소드

Make an async request to the Facebook Graph API with the given string parameters.
See http://developers.facebook.com/docs/api Note that this method is asynchronous. This method will not block waiting for a network response. To fetch data about the currently logged authenticated user, provide "/me", which will fetch http://graph.facebook.com/me For parameters: key-value string parameters, e.g. the path "search" with parameters "q" : "facebook" would produce a query for the following graph resource: https://graph.facebook.com/search?q=facebook
public GetAsync ( string graphPath, string>.IDictionary parameters, bool addAccessToken, Action callback ) : void
graphPath string Path to the resource in the Facebook graph.
parameters string>.IDictionary key-value string parameters.
addAccessToken bool Add whether to set the access token or not.
callback Action /// The callback. ///
리턴 void

IsSessionValid() 공개 메소드

Checks whether this object has an non-expired session token.
public IsSessionValid ( ) : bool
리턴 bool

PostAsync() 공개 메소드

Publish to the Facebook Graph API.
See http://developers.facebook.com/docs/api Note that this method is asynchronous. This method will not block waiting for a network response. To post to the wall of the currently logged authenticated user, provide "/me/feed", which will make a request to http://graph.facebook.com/me/feed For parameters: key-value string parameters, e.g. parameters "message" : "this is a message" would produce the follwing parameters message=this is a message
public PostAsync ( string graphPath, string>.IDictionary parameters, Action callback ) : void
graphPath string /// Path to the resource in the Facebook graph. ///
parameters string>.IDictionary /// key-value string parameters. ///
callback Action /// The callback. ///
리턴 void

SetAccessExpiresIn() 공개 메소드

Set the current session's duration (in seconds since Unix epoch).
public SetAccessExpiresIn ( string expiresIn ) : void
expiresIn string Duration in seconds.
리턴 void

프로퍼티 상세

Expires 공개적으로 정적으로 프로퍼티

public static string Expires
리턴 string

Token 공개적으로 정적으로 프로퍼티

public static string Token
리턴 string

_apiBaseUrl 보호되어 있는 정적으로 프로퍼티

protected static string _apiBaseUrl
리턴 string

_graphBaseUrl 보호되어 있는 정적으로 프로퍼티

protected static string _graphBaseUrl
리턴 string

_oauthEndpoint 보호되어 있는 정적으로 프로퍼티

protected static string _oauthEndpoint
리턴 string