Uses of Class
com.restfb.BinaryAttachment
-
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 TypeMethodDescriptionDefaultWebRequestor.executePost(String url, String parameters, List<BinaryAttachment> binaryAttachments, String headerAccessToken)
WebRequestor.executePost(String url, String parameters, List<BinaryAttachment> binaryAttachments, String headerAccessToken)
Given a Facebook API endpoint URL and parameter string, execute aPOST
to the endpoint URL.protected String
DefaultFacebookClient.makeRequest(String endpoint, boolean executeAsPost, boolean executeAsDelete, List<BinaryAttachment> binaryAttachments, Parameter... parameters)
Coordinates the process of executing the API request GET/POST and processing the response we receive from the endpoint.<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
.
byte[]
for data