1

我的Facebook应用的状态和评论反馈建议不要在墙上张贴时预先填写文本。但是我可以在Facebook Graph API文档Graph API Publishing section中找到使用message参数。
Facebook SDK图形API在墙上张贴消息

Bundle params = new Bundle(); 
params.putString("message", "This is a test message"); 
/* make the API call */ 
new GraphRequest(
    AccessToken.getCurrentAccessToken(), 
    "/me/feed", 
    params, 
    HttpMethod.POST, 
    new GraphRequest.Callback() { 
     public void onCompleted(GraphResponse response) { 
      /* handle the result */ 
     } 
    } 
).executeAsync(); 


我已经验证它,它工作正常。根据更新的Facebook政策允许吗?

+0

https://developers.facebook.com/docs/apps/review/prefill – CBroe

回答

2

消息必须是100%用户生成的,所以如果您提供一个(EMPTY!)输入字段,用户可以在进行API调用之前输入消息,那就没有问题。预填充意味着您预先填写了消息或输入字段,这是不允许的。

https://developers.facebook.com/docs/apps/review/prefill