OpenGraphAction.Factory
This class is no longer available in the most recent version of the SDK.
A more recent version of this class is available. Check out the latest version.

Exposes helpers for creating instances of OpenGraphAction.

Extends:Object
Package:model
Constructors
OpenGraphAction.Factory()
public OpenGraphAction.Factory()
Class Methods
createForPost()

Creates an OpenGraphAction suitable for posting via, e.g., a native Share dialog.

public static OpenGraphAction createForPost()
Returns
An OpenGraphAction
createForPost(String)

Creates an OpenGraphAction suitable for posting via, e.g., a native Share dialog.

public static OpenGraphAction createForPost(String type)
ParameterDescription
typeThe Open Graph action type for the action, or null if it will be specified later
Returns
An OpenGraphAction
createForPost(Class, String)

Creates an OpenGraphAction suitable for posting via, e.g., a native Share dialog.

public static OpenGraphAction createForPost(Class graphObjectClass, String type)
ParameterDescription
graphObjectClassThe OpenGraphAction-derived type to return
typeThe Open Graph action type for the action, or null if it will be specified later
Returns
An OpenGraphAction