如何使用param Facebook图形API?

时间:2017-09-30 20:25:54

标签: facebook api facebook-graph-api parameters facebook-javascript-sdk

我无法使用Facebook API设置关于param字符串的兴趣和关系。

api代码:

 {
  "about": "I am simple man",
  "relationship_status": "Single",
  "interested_in": [
    "male"
  ],
  "id": "103249693763348"
}

我的参数代码:

params.about = JSON.stringify([{
        "about": I am simple man,
        "privacy": '{"value":"EVERYONE"}',
        "ref": "nux_android"
    }]);
params.relationship_status = JSON.stringify([{
        "relationship_status": single,
        "privacy": '{"value":"EVERYONE"}',
        "ref": "nux_android"
    }]);
params.interested_in = JSON.stringify([{
        "interested_in": male,
        "privacy": '{"value":"EVERYONE"}',
        "ref": "nux_android"
    }]);

0 个答案:

没有答案