Out*_*ard 3 javascript facebook facebook-graph-api facebook-javascript-sdk
我遇到了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);
}
});
Run Code Online (Sandbox Code Playgroud)
因此,我只是在帖子中收到一条消息"Test123"但没有"with"标签.我在"with"部分中使用的用户位于我的朋友列表中,并且也是该应用的开发者.谢谢.
我实际上认为"with_tags"选项在返回feed对象时是只读的.这不是你可以发布一个选项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/
| 归档时间: |
|
| 查看次数: |
15353 次 |
| 最近记录: |