public static class FacebookDialog.OpenGraphActionDialogBuilder extends Object
FacebookDialog.checkCanPresentOpenGraphDialog();
indicates the capability
is available.Constructor and Description |
---|
FacebookDialog.OpenGraphActionDialogBuilder(Activity activity,
OpenGraphAction action,
String previewPropertyName)
Constructor.
|
FacebookDialog.OpenGraphActionDialogBuilder(Activity activity,
OpenGraphAction action,
String actionType,
String previewPropertyName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
FacebookDialog.OpenGraphActionDialogBuilder |
setDataErrorsFatal(boolean dataErrorsFatal)
Sets whether errors encountered during previewing the shared item should be considered fatal and
cause the dialog to return an error
|
FacebookDialog.OpenGraphActionDialogBuilder |
setImageAttachmentFilesForAction(List<File> bitmapFiles)
Specifies a list of images for the Open Graph action that should be uploaded prior to publishing the
action.
|
FacebookDialog.OpenGraphActionDialogBuilder |
setImageAttachmentFilesForAction(List<File> bitmapFiles,
boolean isUserGenerated)
Specifies a list of images for the Open Graph action that should be uploaded prior to publishing the
action.
|
FacebookDialog.OpenGraphActionDialogBuilder |
setImageAttachmentFilesForObject(String objectProperty,
List<File> bitmapFiles)
Specifies a list of images for an Open Graph object referenced by the action that should be uploaded
prior to publishing the action.
|
FacebookDialog.OpenGraphActionDialogBuilder |
setImageAttachmentFilesForObject(String objectProperty,
List<File> bitmapFiles,
boolean isUserGenerated)
Specifies a list of images for an Open Graph object referenced by the action that should be uploaded
prior to publishing the action.
|
FacebookDialog.OpenGraphActionDialogBuilder |
setImageAttachmentsForAction(List<Bitmap> bitmaps)
Specifies a list of images for the Open Graph action that should be uploaded prior to publishing the
action.
|
FacebookDialog.OpenGraphActionDialogBuilder |
setImageAttachmentsForAction(List<Bitmap> bitmaps,
boolean isUserGenerated)
Specifies a list of images for the Open Graph action that should be uploaded prior to publishing the
action.
|
FacebookDialog.OpenGraphActionDialogBuilder |
setImageAttachmentsForObject(String objectProperty,
List<Bitmap> bitmaps)
Specifies a list of images for an Open Graph object referenced by the action that should be uploaded
prior to publishing the action.
|
FacebookDialog.OpenGraphActionDialogBuilder |
setImageAttachmentsForObject(String objectProperty,
List<Bitmap> bitmaps,
boolean isUserGenerated)
Specifies a list of images for an Open Graph object referenced by the action that should be uploaded
prior to publishing the action.
|
@Deprecated public FacebookDialog.OpenGraphActionDialogBuilder(Activity activity, OpenGraphAction action, String actionType, String previewPropertyName)
activity
- the Activity which is presenting the native Open Graph action publish dialog;
must not be nullaction
- the Open Graph action to be published, which must contain a reference to at least one
Open Graph object with the property name specified by setPreviewPropertyName; the action
must have had its type specified via the OpenGraphAction.setType(String)
methodactionType
- the type of the Open Graph action to be published, which should be the namespace-qualified
name of the action type (e.g., "myappnamespace:myactiontype"); this will override the type
of the action passed in.previewPropertyName
- the name of a property on the Open Graph action that contains the
Open Graph object which will be displayed as a preview to the userpublic FacebookDialog.OpenGraphActionDialogBuilder(Activity activity, OpenGraphAction action, String previewPropertyName)
activity
- the Activity which is presenting the native Open Graph action publish dialog;
must not be nullaction
- the Open Graph action to be published, which must contain a reference to at least one
Open Graph object with the property name specified by setPreviewPropertyName; the action
must have had its type specified via the OpenGraphAction.setType(String)
methodpreviewPropertyName
- the name of a property on the Open Graph action that contains the
Open Graph object which will be displayed as a preview to the userpublic FacebookDialog.OpenGraphActionDialogBuilder setDataErrorsFatal(boolean dataErrorsFatal)
dataErrorsFatal
- true if data errors should be fatal; false if notpublic FacebookDialog.OpenGraphActionDialogBuilder setImageAttachmentsForAction(List<Bitmap> bitmaps)
Specifies a list of images for the Open Graph action that should be uploaded prior to publishing the action. The action must already have been set prior to calling this method. This method will generate unique names for the image attachments and update the action to refer to these attachments. Note that calling setAction again after calling this method will not clear the image attachments already set, but the new action will have no reference to the existing attachments. The images will not be marked as being user-generated.
In order for the images to be provided to the Facebook application as part of the app call, the NativeAppCallContentProvider must be specified correctly in the application's AndroidManifest.xml.
bitmaps
- a list of Bitmaps to be uploaded and attached to the Open Graph actionpublic FacebookDialog.OpenGraphActionDialogBuilder setImageAttachmentsForAction(List<Bitmap> bitmaps, boolean isUserGenerated)
Specifies a list of images for the Open Graph action that should be uploaded prior to publishing the action. The action must already have been set prior to calling this method. This method will generate unique names for the image attachments and update the action to refer to these attachments. Note that calling setAction again after calling this method will not clear the image attachments already set, but the new action will have no reference to the existing attachments. The images may be marked as being user-generated -- refer to this article for more information.
In order for the images to be provided to the Facebook application as part of the app call, the NativeAppCallContentProvider must be specified correctly in the application's AndroidManifest.xml.
bitmaps
- a list of Bitmaps to be uploaded and attached to the Open Graph actionisUserGenerated
- if true, specifies that the user_generated flag should be set for these imagespublic FacebookDialog.OpenGraphActionDialogBuilder setImageAttachmentFilesForAction(List<File> bitmapFiles)
Specifies a list of images for the Open Graph action that should be uploaded prior to publishing the action. The action must already have been set prior to calling this method. The images will not be marked as being user-generated. This method will generate unique names for the image attachments and update the action to refer to these attachments. Note that calling setAction again after calling this method will not clear the image attachments already set, but the new action will have no reference to the existing attachments.
In order for the images to be provided to the Facebook application as part of the app call, the NativeAppCallContentProvider must be specified correctly in the application's AndroidManifest.xml.
bitmapFiles
- a list of Files containing bitmaps to be uploaded and attached to the Open Graph actionpublic FacebookDialog.OpenGraphActionDialogBuilder setImageAttachmentFilesForAction(List<File> bitmapFiles, boolean isUserGenerated)
Specifies a list of images for the Open Graph action that should be uploaded prior to publishing the action. The action must already have been set prior to calling this method. The images may be marked as being user-generated -- refer to this article for more information. This method will generate unique names for the image attachments and update the action to refer to these attachments. Note that calling setAction again after calling this method will not clear the image attachments already set, but the new action will have no reference to the existing attachments.
In order for the images to be provided to the Facebook application as part of the app call, the NativeAppCallContentProvider must be specified correctly in the application's AndroidManifest.xml.
bitmapFiles
- a list of Files containing bitmaps to be uploaded and attached to the Open Graph actionisUserGenerated
- if true, specifies that the user_generated flag should be set for these imagespublic FacebookDialog.OpenGraphActionDialogBuilder setImageAttachmentsForObject(String objectProperty, List<Bitmap> bitmaps)
Specifies a list of images for an Open Graph object referenced by the action that should be uploaded prior to publishing the action. The images will not be marked as user-generated. The action must already have been set prior to calling this method, and the action must have a GraphObject-valued property with the specified property name. This method will generate unique names for the image attachments and update the graph object to refer to these attachments. Note that calling setObject again after calling this method, or modifying the value of the specified property, will not clear the image attachments already set, but the new action (or objects) will have no reference to the existing attachments.
In order for the images to be provided to the Facebook application as part of the app call, the NativeAppCallContentProvider must be specified correctly in the application's AndroidManifest.xml.
objectProperty
- the name of a property on the action that corresponds to an Open Graph object;
the object must be marked as a new object to be created
(i.e., OpenGraphObject.getCreateObject()
must return
true) or an exception will be thrownbitmapFiles
- a list of Files containing bitmaps to be uploaded and attached to the Open Graph objectpublic FacebookDialog.OpenGraphActionDialogBuilder setImageAttachmentsForObject(String objectProperty, List<Bitmap> bitmaps, boolean isUserGenerated)
Specifies a list of images for an Open Graph object referenced by the action that should be uploaded prior to publishing the action. The images may be marked as being user-generated -- refer to this article for more information. The action must already have been set prior to calling this method, and the action must have a GraphObject-valued property with the specified property name. This method will generate unique names for the image attachments and update the graph object to refer to these attachments. Note that calling setObject again after calling this method, or modifying the value of the specified property, will not clear the image attachments already set, but the new action (or objects) will have no reference to the existing attachments.
In order for the images to be provided to the Facebook application as part of the app call, the NativeAppCallContentProvider must be specified correctly in the application's AndroidManifest.xml.
objectProperty
- the name of a property on the action that corresponds to an Open Graph object;
the object must be marked as a new object to be created
(i.e., OpenGraphObject.getCreateObject()
must return
true) or an exception will be thrownobjectProperty
- the name of a property on the action that corresponds to an Open Graph objectbitmapFiles
- a list of Files containing bitmaps to be uploaded and attached to the Open Graph objectisUserGenerated
- if true, specifies that the user_generated flag should be set for these imagespublic FacebookDialog.OpenGraphActionDialogBuilder setImageAttachmentFilesForObject(String objectProperty, List<File> bitmapFiles)
Specifies a list of images for an Open Graph object referenced by the action that should be uploaded prior to publishing the action. The images will not be marked as user-generated. The action must already have been set prior to calling this method, and the action must have a GraphObject-valued property with the specified property name. This method will generate unique names for the image attachments and update the graph object to refer to these attachments. Note that calling setObject again after calling this method, or modifying the value of the specified property, will not clear the image attachments already set, but the new action (or objects) will have no reference to the existing attachments.
In order for the images to be provided to the Facebook application as part of the app call, the NativeAppCallContentProvider must be specified correctly in the application's AndroidManifest.xml.
objectProperty
- the name of a property on the action that corresponds to an Open Graph object;
the object must be marked as a new object to be created
(i.e., OpenGraphObject.getCreateObject()
must return
true) or an exception will be thrownbitmaps
- a list of Bitmaps to be uploaded and attached to the Open Graph objectpublic FacebookDialog.OpenGraphActionDialogBuilder setImageAttachmentFilesForObject(String objectProperty, List<File> bitmapFiles, boolean isUserGenerated)
Specifies a list of images for an Open Graph object referenced by the action that should be uploaded prior to publishing the action. The images may be marked as being user-generated -- refer to this article for more information. The action must already have been set prior to calling this method, and the action must have a GraphObject-valued property with the specified property name. This method will generate unique names for the image attachments and update the graph object to refer to these attachments. Note that calling setObject again after calling this method, or modifying the value of the specified property, will not clear the image attachments already set, but the new action (or objects) will have no reference to the existing attachments.
In order for the images to be provided to the Facebook application as part of the app call, the NativeAppCallContentProvider must be specified correctly in the application's AndroidManifest.xml.
objectProperty
- the name of a property on the action that corresponds to an Open Graph object;
the object must be marked as a new object to be created
(i.e., OpenGraphObject.getCreateObject()
must return
true) or an exception will be thrownbitmaps
- a list of Bitmaps to be uploaded and attached to the Open Graph objectisUserGenerated
- if true, specifies that the user_generated flag should be set for these images