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 |
ShareApi(ShareContent)
Constructs a new instance.
public ShareApi(ShareContent shareContent)
Parametro | Descrizione |
---|---|
shareContent | The content to share. |
share(ShareContent, FacebookCallback)
Convenience method to share a piece of content.
public static void share(ShareContent shareContent, FacebookCallback callback)
Parametro | Descrizione |
---|---|
shareContent | The content to share. |
callback | The callback to call once the share is complete. |
getShareContent()
Returns the content to be shared.
public ShareContent getShareContent()
canShare()
Returns true if the current access token has the publish_actions permission.
public boolean canShare()
share(FacebookCallback)
Share the content.
public void share(FacebookCallback callback)
Parametro | Descrizione |
---|---|
callback | The callback to call once the share is complete. |