Uses of Class
com.restfb.BinaryAttachment
-
Packages that use BinaryAttachment Package Description com.restfb Contains types used to interact with the Facebook Graph API.com.restfb.types Default implementations of Facebook Graph API Objects. -
-
Uses of BinaryAttachment in com.restfb
Methods in com.restfb that return BinaryAttachment Modifier and Type Method Description static BinaryAttachment
BinaryAttachment. with(String filename, byte[] data)
Creates a binary attachment.static BinaryAttachment
BinaryAttachment. with(String filename, byte[] data, String contentType)
Creates a binary attachment.static BinaryAttachment
BinaryAttachment. with(String filename, InputStream data)
Deprecated.use the stream-less API passing abyte[]
for datastatic BinaryAttachment
BinaryAttachment. with(String filename, InputStream data, String contentType)
Deprecated.use the stream-less API passing abyte[]
for data insteadstatic BinaryAttachment
BinaryAttachment. with(String fieldName, String filename, byte[] data)
Creates a binary attachment.static BinaryAttachment
BinaryAttachment. with(String fieldName, String filename, byte[] data, String contentType)
Creates a binary attachment.static BinaryAttachment
BinaryAttachment. with(String fieldName, String filename, InputStream data)
Deprecated.use the stream-less API passing abyte[]
for datastatic BinaryAttachment
BinaryAttachment. with(String fieldName, String filename, InputStream data, String contentType)
Deprecated.use the stream-less API passing abyte[]
for dataMethods in com.restfb that return types with arguments of type BinaryAttachment Modifier and Type Method Description List<BinaryAttachment>
WebRequestor.Request. getBinaryAttachments()
Methods in com.restfb with parameters of type BinaryAttachment Modifier and Type Method Description protected String
DefaultWebRequestor. createFormFieldName(BinaryAttachment binaryAttachment)
Creates the form field name for the binary attachment filename by stripping off the file extension - for example, the filename "test.png" would return "test".<T> T
DefaultFacebookClient. publish(String connection, Class<T> objectType, BinaryAttachment binaryAttachment, Parameter... parameters)
<T> T
FacebookClient. publish(String connection, Class<T> objectType, BinaryAttachment binaryAttachment, Parameter... parameters)
Performs a Graph API publish operation on the givenconnection
and includes a file - a photo, for example - in the publish request, and mapping the result to an instance ofobjectType
.Method parameters in com.restfb with type arguments of type BinaryAttachment Modifier and Type Method Description protected String
DefaultFacebookClient. makeRequest(String endpoint, boolean executeAsPost, boolean executeAsDelete, List<BinaryAttachment> binaryAttachments, Body body, Parameter... parameters)
Coordinates the process of executing the API request GET/POST and processing the response we receive from the endpoint.protected String
DefaultFacebookClient. makeRequest(String endpoint, boolean executeAsPost, boolean executeAsDelete, List<BinaryAttachment> binaryAttachments, Parameter... parameters)
<T> T
DefaultFacebookClient. publish(String connection, Class<T> objectType, List<BinaryAttachment> binaryAttachments, Parameter... parameters)
<T> T
FacebookClient. publish(String connection, Class<T> objectType, List<BinaryAttachment> binaryAttachments, Parameter... parameters)
Performs a Graph API publish operation on the givenconnection
and includes some files - photos, for example - in the publish request, and mapping the result to an instance ofobjectType
.void
WebRequestor.Request. setBinaryAttachments(List<BinaryAttachment> binaryAttachments)
Constructor parameters in com.restfb with type arguments of type BinaryAttachment Constructor Description Request(String url, String headerAccessToken, String parameters, List<BinaryAttachment> attachments)
Simple http request with url and a header access token -
Uses of BinaryAttachment in com.restfb.types
Subclasses of BinaryAttachment in com.restfb.types Modifier and Type Class Description class
FacebookReelAttachment
Attachment object for uploading a Reel to Facebook.
-