Android SDK Version


public final class OpenGraphJSONUtility
com.facebook.share.internal is solely for the use of other packages within the Facebook SDK for Android. Use of any of the classes in this package is unsupported, and they may be modified or removed without warning at any time.
Utility methods for JSON representation of Open Graph models.
Nested Class Summary
Modifier and TypeClassDescription
public interfaceOpenGraphJSONUtility.PhotoJSONProcessor
Method Summary
Modifier and TypeMethodDescription
static JSONObjecttoJSONObject(ShareOpenGraphAction action, OpenGraphJSONUtility.PhotoJSONProcessor photoJSONProcessor) Converts an action to a JSONObject.
static ObjecttoJSONValue(@Nullable() Object object, OpenGraphJSONUtility.PhotoJSONProcessor photoJSONProcessor)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

toJSONObject

 static JSONObjecttoJSONObject(ShareOpenGraphAction action, OpenGraphJSONUtility.PhotoJSONProcessor photoJSONProcessor)
Converts an action to a JSONObject.
NOTE: All images are removed from the JSON representation and must be added to the builderseparately.
Parameters:

toJSONValue

 static ObjecttoJSONValue(@Nullable() Object object, OpenGraphJSONUtility.PhotoJSONProcessor photoJSONProcessor)