Hi,
I'm using RestFB to send message within conversation. I'm using the following code:
facebookClient.publish(id + "/messages", FacebookType.class, Parameter.with("message", fbMessage));
It's working great with regular users however once I'm trying to send to test users I'm getting the following error message.
com.restfb.exception.FacebookOAuthException: Received Facebook error response of type OAuthException: (#230) Permissions disallow message to user (code 230, subcode null)
at com.restfb.DefaultFacebookClient$DefaultGraphFacebookExceptionMapper.exceptionForTypeAndMessage(DefaultFacebookClient.java:1196) ~[restfb-1.10.1.jar:?]
at com.restfb.DefaultFacebookClient.throwFacebookResponseStatusExceptionIfNecessary(DefaultFacebookClient.java:1111) ~[restfb-1.10.1.jar:?]
at com.restfb.DefaultFacebookClient.makeRequestAndProcessResponse(DefaultFacebookClient.java:1045) ~[restfb-1.10.1.jar:?]
at com.restfb.DefaultFacebookClient.makeRequest(DefaultFacebookClient.java:958) ~[restfb-1.10.1.jar:?]
at com.restfb.DefaultFacebookClient.publish(DefaultFacebookClient.java:465) ~[restfb-1.10.1.jar:?]
at com.restfb.DefaultFacebookClient.publish(DefaultFacebookClient.java:489) ~[restfb-1.10.1.jar:?]
at com.maiff.was.connectors.impl.fb.graph.FBClient.sendMessage(FBClient.java:108) ~[FBClient.class:?]
at
I'm wondering which permissions are missing and how to enable them.
thank you
Moshe