Uses of Class
com.restfb.BinaryAttachment
Package
Description
Contains types used to interact with the Facebook
Graph API.
Default implementations of Facebook
Graph API Objects.
-
Uses of BinaryAttachment in com.restfb
Modifier and TypeMethodDescriptionstatic BinaryAttachment
Creates a binary attachment.static BinaryAttachment
Creates a binary attachment.static BinaryAttachment
BinaryAttachment.with
(String filename, InputStream data) Deprecated.static BinaryAttachment
BinaryAttachment.with
(String filename, InputStream data, String contentType) Deprecated.use the stream-less API passing abyte[]
for data insteadstatic BinaryAttachment
Creates a binary attachment.static BinaryAttachment
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 dataModifier and TypeMethodDescriptionprotected 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
.Modifier and TypeMethodDescriptionprotected 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) -
Uses of BinaryAttachment in com.restfb.types
Modifier and TypeClassDescriptionclass
Attachment object for uploading a Reel to Facebook.
byte[]
for data