ShareApi
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

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.

확장:Object
패키지:share
생성자
ShareApi(ShareContent)

Constructs a new instance.

public ShareApi(ShareContent shareContent)
매개변수설명
shareContentThe content to share.
클래스 메서드
share(ShareContent, FacebookCallback)

Convenience method to share a piece of content.

public static void share(ShareContent shareContent, FacebookCallback callback)
매개변수설명
shareContentThe content to share.
callbackThe callback to call once the share is complete.
인스턴스 메서드
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)
매개변수설명
callbackThe callback to call once the share is complete.