Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@deprecate method #9

Open
pradeepjadi opened this issue Sep 27, 2018 · 1 comment
Open

@deprecate method #9

pradeepjadi opened this issue Sep 27, 2018 · 1 comment

Comments

@pradeepjadi
Copy link

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.

@nbartels
Copy link
Contributor

Looks like a duplicate to me. The deprecated method is not the problem here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants