Facebook Graph API Post with_tags选项 [英] Facebook Graph API Post with_tags option

查看:94
本文介绍了Facebook Graph API Post with_tags选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 http://developers.facebook.com/中遇到问题文档/参考/ API /后/ 。也就是说,选项叫做with_tags。

I'm experiencing an issue with http://developers.facebook.com/docs/reference/api/post/. Namely, option called "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部分使用的用户在我的朋友列表中,也是应用程序的开发人员。
谢谢。

As a result, I just get a message "Test123" but no "with" tags in my post. The user I use in "with" section is on my friends list and is a developer of the app as well. Thanks.

推荐答案

我实际上认为with_tags选项在返回feed对象时是只读的。您不可以选择 https://developers.facebook.com/docs / reference / dialogs / feed /#graphapicall 。我想你想要使用的只是标签,它应该只包含这里指定的id https://developers.facebook.com/docs/reference/api/user/#posts

I actually think the "with_tags" option is read only when returning the feed object. It's not an option you can POST https://developers.facebook.com/docs/reference/dialogs/feed/#graphapicall .I think what you want to use is just "tags" and it should just contain id's as specified here https://developers.facebook.com/docs/reference/api/user/#posts

**注意你不能这样做,虽然没有指定一个地方

**note you cannot do this though without also specifying a place

编辑****
Facebook现在已经发布提及标签可能是您需要的解决方案
https://developers.facebook.com/docs/打开/提示/

这篇关于Facebook Graph API Post with_tags选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆