Android SDK Version
  • java.lang.Object
    • com.facebook.ShareGraphRequest

public class ShareGraphRequest
extends java.lang.Object
Constructor Summary
Constructor and Description
ShareGraphRequest() 
Method Summary
Modifier and TypeMethod and Description
static GraphRequestcreateOpenGraphObject(ShareOpenGraphObject openGraphObject)
Create an User Owned Open Graph object Use this method to create an open graph object, which can then be posted utilizing the same GraphRequest methods as other GraphRequests.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

ShareGraphRequest

public ShareGraphRequest()
Method Detail

createOpenGraphObject

public static GraphRequest createOpenGraphObject(ShareOpenGraphObject openGraphObject)
                                          throws FacebookException
Create an User Owned Open Graph object Use this method to create an open graph object, which can then be posted utilizing the same GraphRequest methods as other GraphRequests.
Parameters:
openGraphObject - The open graph object to create. Only SharePhotos with the imageUrl set are accepted through this helper method.
Returns:
GraphRequest for creating the given openGraphObject
Throws:
FacebookException - thrown in the case of a JSONException or in the case of invalid format for SharePhoto (missing imageUrl)