public class GraphUtil
extends java.lang.Object
| Constructor and Description |
|---|
GraphUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.json.JSONObject |
createOpenGraphActionForPost(java.lang.String type)
Creates a JSONObject for an open graph action that is suitable for posting.
|
static org.json.JSONObject |
createOpenGraphObjectForPost(java.lang.String type)
Creates a JSONObject for an open graph object that is suitable for posting.
|
static org.json.JSONObject |
createOpenGraphObjectForPost(java.lang.String type,
java.lang.String title,
java.lang.String imageUrl,
java.lang.String url,
java.lang.String description,
org.json.JSONObject objectProperties,
java.lang.String id)
Creates a JSONObject for an open graph object that is suitable for posting.
|
static boolean |
isOpenGraphObjectForPost(org.json.JSONObject object)
Determines if the open graph object is for posting
|
public static org.json.JSONObject createOpenGraphActionForPost(java.lang.String type)
type - the Open Graph action type for the object, or null if it will be specified laterpublic static org.json.JSONObject createOpenGraphObjectForPost(java.lang.String type)
type - the Open Graph object type for the object, or null if it will be specified laterpublic static org.json.JSONObject createOpenGraphObjectForPost(java.lang.String type,
java.lang.String title,
java.lang.String imageUrl,
java.lang.String url,
java.lang.String description,
org.json.JSONObject objectProperties,
java.lang.String id)
type - the Open Graph object type for the object, or null if it will be specified latertitle - the title of the object, or null if it will be specified laterimageUrl - the URL of an image associated with the object, or nullurl - the URL associated with the object, or nulldescription - the description of the object, or nullobjectProperties - the properties of the open graph objectid - the id of the object if the post is for updatepublic static boolean isOpenGraphObjectForPost(org.json.JSONObject object)
object - The open graph object to check