Skip to content

@deprecate method  #9

@pradeepjadi

Description

@pradeepjadi

Message Request processing failed; nested exception is com.restfb.exception.FacebookOAuthException: Received Facebook error response of type OAuthException: (#200) Requires either publish_to_groups permission and app being installed in the group, or manage_pages and publish_pages as an admin with sufficient administrative permission (code 200, subcode null) 'null - null'

and
FacebookType publishPhotoResponse = fbClient.publish("me/photos", FacebookType.class,
BinaryAttachment.with("cat.png", getClass().getResourceAsStream("/cat.png")),
Parameter.with("message", "Test cat"));

its shows Open Declaration BinaryAttachment com.restfb.BinaryAttachment.with(String filename, InputStream data)

@deprecated

Deprecated. use the stream-less API passing a byte[] for data

Creates a binary attachment.

Parameters:
filename The attachment's filename.
data The attachment's data.
Returns:
A binary attachment.
Throws:
IllegalArgumentException - If data is null or filename is null or blank.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions