在页面API中提及Facebook页面 [英] Mention Facebook Page in Page API Post

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

问题描述

很抱歉,这是-

Apologies this is a duplicate post of - Facebook Graph Api - Posting to Fan Page as an Admin

图形API逐字声明( https ://developers.facebook.com/docs/graph-api/reference/v2.1/page/feed/):

The graph API states verbatim that (https://developers.facebook.com/docs/graph-api/reference/v2.1/page/feed/):

帖子的主体,否则称为状态消息.任何一个 链接或消息必须提供.该消息可以包含以下内容: 使用以下语法的Facebook Pages:

The main body of the post, otherwise called the status message. Either link or message must be supplied. The message can contain mentions of Facebook Pages using the following syntax:

 @[page-id]

例如,以下消息将提及Facebook 内联开发人员页面:

For example the following message would mention the Facebook Developers page inline:

 Test message @[19292868552] tag

如果我使用上述语法发布到页面(我是管理员),则将页面ID用于内联链接(我也是管理员),并使用Facebook应用程序(我是管理员)开发人员)似乎无效.我的通话示例是:

If I post to a page (for which I am an admin) with the above syntax, using a page Id for the inline link (for which I am also an admin) and using a facebook application (for which I am a developer) this doesn't appear to work. An example of my call is:

https ://graph.facebook.com/v2.1/page-id1/feed?message = Test + message + @ [page-id2] + tag

在我的情况下,标记按上面显示的方式呈现,即没有链接或提及.到目前为止,我已经尝试过:

In my case the tag is rendered as it appears above, i.e. no link or mention. So far I have tried:

  1. page-id1和page-id2的不同组合.
  2. HTML编码@,[和]符号.
  3. 以页面或用户身份发布.
  4. 使用不同的符号@ [page-id:page-name].这一点一点都不会呈现,只会变成空白.

如果任何人都可以阐明这一点,我肯定会错过明显的东西!

I must be missing something obvious if anyone is able to shed any light on this!

推荐答案

这是API版本2.1的文档,但是您的示例调用未进行版本控制,因此会

That's the documentation for API version 2.1, but your sample call there is unversioned and would thus be using the oldest supported version which is v1.0.

v1.0文档没有说明该功能,因此可能仅在v2.1或更高版本中可用

The v1.0 documentation doesn't say anything about that functionality, so it's likely only available in v2.1 or higher

文档还说,您必须先批准您对该功能的使用,然后才能被公众使用,但是我认为使用正确的版本应该可以使它对您有用,以进行测试,前提是您是该功能的管理员应用,正在标记的页面和正在更新的页面

The docs also say your usage of that feature needs to be approved before it can be used by the public, but i think using the correct version should get it working for you for test purposes, provided you're an admin of the App, the Page you're tagging and the Page you're updating

这篇关于在页面API中提及Facebook页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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