C# Class Facebook.Unity.FacebookBase

Inheritance: IFacebookImplementation
Mostra file Open project: facebook/facebook-sdk-for-unity Class Usage Examples

Public Methods

Method Description
API ( string query, HttpMethod method, string>.IDictionary formData, FacebookDelegate callback ) : void
API ( string query, HttpMethod method, WWWForm formData, FacebookDelegate callback ) : void
ActivateApp ( string appId = null ) : void
AppEventsLogEvent ( string logEvent, float valueToSum, object>.Dictionary parameters ) : void
AppEventsLogPurchase ( float logPurchase, string currency, object>.Dictionary parameters ) : void
AppRequest ( string message, IEnumerable to = null, IEnumerable filters = null, IEnumerable excludeIds = null, int maxRecipients = null, string data = "", string title = "", FacebookDelegate callback = null ) : void
AppRequest ( string message, Facebook.Unity.OGActionType actionType, string objectId, IEnumerable to, IEnumerable filters, IEnumerable excludeIds, int maxRecipients, string data, string title, FacebookDelegate callback ) : void
FeedShare ( string toId, Uri link, string linkName, string linkCaption, string linkDescription, Uri picture, string mediaSource, FacebookDelegate callback ) : void
GameGroupCreate ( string name, string description, string privacy, FacebookDelegate callback ) : void
GameGroupJoin ( string id, FacebookDelegate callback ) : void
GetAppLink ( FacebookDelegate callback ) : void
Init ( InitDelegate onInitComplete ) : void
LogInWithPublishPermissions ( IEnumerable scope, FacebookDelegate callback ) : void
LogInWithReadPermissions ( IEnumerable scope, FacebookDelegate callback ) : void
LogOut ( ) : void
OnAppRequestsComplete ( ResultContainer resultContainer ) : void
OnGetAppLinkComplete ( ResultContainer resultContainer ) : void
OnGroupCreateComplete ( ResultContainer resultContainer ) : void
OnGroupJoinComplete ( ResultContainer resultContainer ) : void
OnInitComplete ( ResultContainer resultContainer ) : void
OnLoginComplete ( ResultContainer resultContainer ) : void
OnLogoutComplete ( ResultContainer resultContainer ) : void
OnShareLinkComplete ( ResultContainer resultContainer ) : void
ShareLink ( Uri contentURL, string contentTitle, string contentDescription, Uri photoURL, FacebookDelegate callback ) : void

Protected Methods

Method Description
FacebookBase ( CallbackManager callbackManager ) : System
OnAuthResponse ( Facebook.Unity.LoginResult result ) : void
ValidateAppRequestArgs ( string message, Facebook.Unity.OGActionType actionType, string objectId, IEnumerable to = null, IEnumerable filters = null, IEnumerable excludeIds = null, int maxRecipients = null, string data = "", string title = "", FacebookDelegate callback = null ) : void

Private Methods

Method Description
CopyByValue ( string>.IDictionary data ) : string>.IDictionary
GetGraphUrl ( string query ) : Uri

Method Details

API() public method

public API ( string query, HttpMethod method, string>.IDictionary formData, FacebookDelegate callback ) : void
query string
method HttpMethod
formData string>.IDictionary
callback FacebookDelegate
return void

API() public method

public API ( string query, HttpMethod method, WWWForm formData, FacebookDelegate callback ) : void
query string
method HttpMethod
formData UnityEngine.WWWForm
callback FacebookDelegate
return void

ActivateApp() public abstract method

public abstract ActivateApp ( string appId = null ) : void
appId string
return void

AppEventsLogEvent() public abstract method

public abstract AppEventsLogEvent ( string logEvent, float valueToSum, object>.Dictionary parameters ) : void
logEvent string
valueToSum float
parameters object>.Dictionary
return void

AppEventsLogPurchase() public abstract method

public abstract AppEventsLogPurchase ( float logPurchase, string currency, object>.Dictionary parameters ) : void
logPurchase float
currency string
parameters object>.Dictionary
return void

AppRequest() public method

public AppRequest ( string message, IEnumerable to = null, IEnumerable filters = null, IEnumerable excludeIds = null, int maxRecipients = null, string data = "", string title = "", FacebookDelegate callback = null ) : void
message string
to IEnumerable
filters IEnumerable
excludeIds IEnumerable
maxRecipients int
data string
title string
callback FacebookDelegate
return void

AppRequest() public abstract method

public abstract AppRequest ( string message, Facebook.Unity.OGActionType actionType, string objectId, IEnumerable to, IEnumerable filters, IEnumerable excludeIds, int maxRecipients, string data, string title, FacebookDelegate callback ) : void
message string
actionType Facebook.Unity.OGActionType
objectId string
to IEnumerable
filters IEnumerable
excludeIds IEnumerable
maxRecipients int
data string
title string
callback FacebookDelegate
return void

FacebookBase() protected method

protected FacebookBase ( CallbackManager callbackManager ) : System
callbackManager CallbackManager
return System

FeedShare() public abstract method

public abstract FeedShare ( string toId, Uri link, string linkName, string linkCaption, string linkDescription, Uri picture, string mediaSource, FacebookDelegate callback ) : void
toId string
link System.Uri
linkName string
linkCaption string
linkDescription string
picture System.Uri
mediaSource string
callback FacebookDelegate
return void

GameGroupCreate() public abstract method

public abstract GameGroupCreate ( string name, string description, string privacy, FacebookDelegate callback ) : void
name string
description string
privacy string
callback FacebookDelegate
return void

GameGroupJoin() public abstract method

public abstract GameGroupJoin ( string id, FacebookDelegate callback ) : void
id string
callback FacebookDelegate
return void

GetAppLink() public abstract method

public abstract GetAppLink ( FacebookDelegate callback ) : void
callback FacebookDelegate
return void

Init() public method

public Init ( InitDelegate onInitComplete ) : void
onInitComplete InitDelegate
return void

LogInWithPublishPermissions() public abstract method

public abstract LogInWithPublishPermissions ( IEnumerable scope, FacebookDelegate callback ) : void
scope IEnumerable
callback FacebookDelegate
return void

LogInWithReadPermissions() public abstract method

public abstract LogInWithReadPermissions ( IEnumerable scope, FacebookDelegate callback ) : void
scope IEnumerable
callback FacebookDelegate
return void

LogOut() public method

public LogOut ( ) : void
return void

OnAppRequestsComplete() public abstract method

public abstract OnAppRequestsComplete ( ResultContainer resultContainer ) : void
resultContainer ResultContainer
return void

OnAuthResponse() protected method

protected OnAuthResponse ( Facebook.Unity.LoginResult result ) : void
result Facebook.Unity.LoginResult
return void

OnGetAppLinkComplete() public abstract method

public abstract OnGetAppLinkComplete ( ResultContainer resultContainer ) : void
resultContainer ResultContainer
return void

OnGroupCreateComplete() public abstract method

public abstract OnGroupCreateComplete ( ResultContainer resultContainer ) : void
resultContainer ResultContainer
return void

OnGroupJoinComplete() public abstract method

public abstract OnGroupJoinComplete ( ResultContainer resultContainer ) : void
resultContainer ResultContainer
return void

OnInitComplete() public method

public OnInitComplete ( ResultContainer resultContainer ) : void
resultContainer ResultContainer
return void

OnLoginComplete() public abstract method

public abstract OnLoginComplete ( ResultContainer resultContainer ) : void
resultContainer ResultContainer
return void

OnLogoutComplete() public method

public OnLogoutComplete ( ResultContainer resultContainer ) : void
resultContainer ResultContainer
return void

OnShareLinkComplete() public abstract method

public abstract OnShareLinkComplete ( ResultContainer resultContainer ) : void
resultContainer ResultContainer
return void

ShareLink() public abstract method

public abstract ShareLink ( Uri contentURL, string contentTitle, string contentDescription, Uri photoURL, FacebookDelegate callback ) : void
contentURL System.Uri
contentTitle string
contentDescription string
photoURL System.Uri
callback FacebookDelegate
return void

ValidateAppRequestArgs() protected method

protected ValidateAppRequestArgs ( string message, Facebook.Unity.OGActionType actionType, string objectId, IEnumerable to = null, IEnumerable filters = null, IEnumerable excludeIds = null, int maxRecipients = null, string data = "", string title = "", FacebookDelegate callback = null ) : void
message string
actionType Facebook.Unity.OGActionType
objectId string
to IEnumerable
filters IEnumerable
excludeIds IEnumerable
maxRecipients int
data string
title string
callback FacebookDelegate
return void