我正在使用以下方法在 facebook 上分享状态。
if (facebook.isSessionValid()) {
        Bundle parameters = new Bundle();
        parameters.putString("message", msg);
        try {
            String response = facebook.request("me/feed", parameters,"POST");
            System.out.println(response);
            Toast.makeText(context, "Posted Successfully", Toast.LENGTH_LONG).show();
        } catch (IOException e) {
            e.printStackTrace();
        }
    } else {
        login();
    }
我检查了具有参数allow = "profileid1,profileid2,profileid3"但它嵌入在 object 中的 graph api。现在我找不到如何在 bundle 中添加这个参数。
这就是 graph api explorer 显示结果的方式。
    "privacy": {
    "description": "Friends; Except: Artemas Ali, Artemas Ali",
    "value": "CUSTOM",
    "friends": "ALL_FRIENDS",
    "networks": "",
    "allow": "",
    "deny": "1000036022153129,1000017534323389"
  },