Exposes helpers for creating instances of OpenGraphObject.
Prolonge : | Object |
Package : | model |
OpenGraphObject.Factory()
public OpenGraphObject.Factory()
createForPost(String)
Creates an OpenGraphObject suitable for posting via, e.g., a native Share dialog. The object will have no properties other than a 'create_object' and 'data' property, ready to be populated.
public static OpenGraphObject createForPost(String type)
Paramètre | Description |
---|---|
type | The Open Graph object type for the object, or null if it will be specified later |
createForPost(Class, String)
Creates an OpenGraphObject suitable for posting via, e.g., a native Share dialog. The object will have no properties other than a 'create_object' and 'data' property, ready to be populated.
public static OpenGraphObject createForPost(Class graphObjectClass, String type)
Paramètre | Description |
---|---|
graphObjectClass | The OpenGraphObject-derived type to return |
type | The Open Graph object type for the object, or null if it will be specified later |
createForPost(Class, String, String, String, String, String)
Creates an OpenGraphObject suitable for posting via, e.g., a native Share dialog. The object will have the specified properties, plus a 'create_object' and 'data' property, ready to be populated.
public static OpenGraphObject createForPost(Class graphObjectClass, String type, String title, String imageUrl, String url, String description)
Paramètre | Description |
---|---|
graphObjectClass | The OpenGraphObject-derived type to return |
type | The Open Graph object type for the object, or null if it will be specified later |
title | The title of the object, or null if it will be specified later |
imageUrl | The URL of an image associated with the object, or null |
url | The URL associated with the object, or null |
description | The description of the object, or null |