我正在尝试使用 facebook API 发布到 facebook 上的页面。但我想自定义发布目标。
当我发布到 facebook 上的页面时,我得到这些结果:
您将获得共享对象:(语言...)和新闻提要定位:(语言...)
但是当我使用 facebook api 发布到我的自定义网站上的页面时,我得到了这些结果:
我只获得新闻提要定位,而不是共享给...
有人知道如何使用 facebook API 获取共享选项吗?
要获取我正在使用的新闻提要定位:
var feed_targeting = {
'locales': ["1001", "1", "2", "4", "9"],
};
但我想知道共享选项的用途....
谢谢
最佳答案
看看https://developers.facebook.com/docs/graph-api/reference/v2.1/page/feed/#pubfields – 有 feed_targeting
和 targeting
,这是两个不同的东西。
targeting: Object that limits the audience for this content. Anyone not in these demographics will not be able to view this content.
关于javascript - 使用 Facebook API 发布到页面时添加定位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24801130/