我遇到了 http://developers.facebook.com/docs/reference/api/post/ 的问题.即,名为“with_tags”的选项。
options = {
"message": "Test123",
"with_tags": {
"data":[
{"id": 100001686722916, "name": "Aret Aret"}
]
}
};
FB.api('/me/feed', 'post', options, function(response) {
if (!response || response.error) {
alert('Error occured');
console.log(response);
} else {
console.log(response);
}
});
结果,我只收到一条消息“Test123”,但我的帖子中没有“with”标签。我在“with”部分使用的用户在我的 friend 列表中,也是该应用程序的开发者。 谢谢。
最佳答案
我实际上认为“with_tags”选项在返回提要对象时是只读的。这不是您可以发布的选项 https://developers.facebook.com/docs/reference/dialogs/feed/#graphapicall .我认为你想使用的只是“标签”,它应该只包含此处指定的 ID https://developers.facebook.com/docs/reference/api/user/#posts
**请注意,您不能在不指定地点的情况下执行此操作
编辑**** Facebook 现已发布提及标记,这可能是您需要的解决方案 https://developers.facebook.com/docs/opengraph/mention_tagging/
关于javascript - Facebook Graph API Post with_tags 选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11614574/