public static GraphRequest newPostOpenGraphObjectRequest(AccessToken accessToken,JSONObject openGraphObject,Callback callback){
  if (openGraphObject == null) {
    throw new FacebookException("openGraphObject cannot be null");
  }
  if (Utility.isNullOrEmpty(openGraphObject.optString("type"))) {
    throw new FacebookException("openGraphObject must have non-null 'type' property");
  }
  if (Utility.isNullOrEmpty(openGraphObject.optString("title"))) {
    throw new FacebookException("openGraphObject must have non-null 'title' property");
  }
  String path=String.format(MY_OBJECTS_FORMAT,openGraphObject.optString("type"));
  Bundle bundle=new Bundle();
  bundle.putString(OBJECT_PARAM,openGraphObject.toString());
  return new GraphRequest(accessToken,path,bundle,HttpMethod.POST,callback);
}

public static GraphRequest newPostOpenGraphObjectRequest ( AccessToken accessToken , JSONObject openGraphObject , Callback callback ) { if ( openGraphObject == null ) { throw new FacebookException ( "openGraphObject cannot be null" ) ; } if ( Utility . isNullOrEmpty ( openGraphObject . optString ( "type" ) ) ) { throw new FacebookException ( "openGraphObject must have non-null 'type' property" ) ; } if ( Utility . isNullOrEmpty ( openGraphObject . optString ( "title" ) ) ) { throw new FacebookException ( "openGraphObject must have non-null 'title' property" ) ; } String path = String . format ( MY_OBJECTS_FORMAT , openGraphObject . optString ( "type" ) ) ; Bundle bundle = new Bundle ( ) ; bundle . putString ( OBJECT_PARAM , openGraphObject . toString ( ) ) ; return new GraphRequest ( accessToken , path , bundle , HttpMethod . POST , callback ) ; }
creates a new request configured to create a user owned open graph object .
