如何通过 API 使用 facebook 提及?

How to use facebook mentions via API?

如何通过 Graph 使用 facebook 页面提及 API?

我是该页面的管理员和应用程序的管理员,试图在其 Feed 中提及带有 @ 语法的页面。

POST 1111111111111/饲料/

{
  message: "Hello @[1111111111111]"
}

这样,提一下就条纹了。我尝试使用我的个人令牌、应用程序令牌、页面令牌。我有权 publish_page、manage_page。

我尝试使用@pagename、@[pagename]、@page-id、@[page-id] 等...

我做错了什么?

谢谢。

我从 Facebook 支持那里得到答复,他们告诉我们应用程序应该处于 development 模式以测试此功能:

I have confirmed with the engineering team that the reason you cannot use the Page Mentions is because your app is in Live mode, but it hasn't been approved for that feature. The docs are a bit confusing, I agree. According to the docs: "Usage of this feature is subject to review. To test before review, use Pages you are an admin of (both to make the API call, and to be used in a mention) and an app of which you are a developer."

What this means is that you can test the feature while in Development mode, but once the app goes Live, the feature will not work. In Live mode, only features/permissions that your app has been approved for will work. You can still submit an app that is in Live mode for app review. Please see the Submission Tips for App Review for Live Apps: https://developers.facebook.com/docs/apps/review/#submission-tips