是否可以以与应用程序相同的方式为页面创建测试用户?
我无法从页面发送消息来测试为使用 graph-api ( /{conversation-id}/messages
) 的应用程序创建的用户,并且出现以下错误,并且在 FB 页面上也出现了相同的错误。
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:1174) ~[restfb-1.18.1.jar:?]
at com.restfb.DefaultFacebookClient.throwFacebookResponseStatusExceptionIfNecessary(DefaultFacebookClient.java:1100) ~[restfb-1.18.1.jar:?]
at com.restfb.DefaultFacebookClient.makeRequestAndProcessResponse(DefaultFacebookClient.java:1041) ~[restfb-1.18.1.jar:?]
at com.restfb.DefaultFacebookClient.makeRequest(DefaultFacebookClient.java:952) ~[restfb-1.18.1.jar:?]
at com.restfb.DefaultFacebookClient.publish(DefaultFacebookClient.java:444) ~[restfb-1.18.1.jar:?]
at com.restfb.DefaultFacebookClient.publish(DefaultFacebookClient.java:469) ~[restfb-1.18.1.jar:?]