ShareApi
Non è disponibile una versione più recente di questa classe. Controlla la versione più recente.

Provides an interface for sharing through the graph API. Using this class requires an access token in AccessToken.currentAccessToken that has been granted the "publish_actions" permission.

Estende:Object
Pacchetto:share
Costruttori
ShareApi(ShareContent)

Constructs a new instance.

public ShareApi(ShareContent shareContent)
ParametroDescrizione
shareContentThe content to share.
Metodi di classe
share(ShareContent, FacebookCallback)

Convenience method to share a piece of content.

public static void share(ShareContent shareContent, FacebookCallback callback)
ParametroDescrizione
shareContentThe content to share.
callbackThe callback to call once the share is complete.
Metodi di istanza
getShareContent()

Returns the content to be shared.

public ShareContent getShareContent()
Returns
The content to be shared.
canShare()

Returns true if the current access token has the publish_actions permission.

public boolean canShare()
Returns
True if the current access token has the publish_actions permission, false otherwise.
share(FacebookCallback)

Share the content.

public void share(FacebookCallback callback)
ParametroDescrizione
callbackThe callback to call once the share is complete.