Facebook API 支持用户页面私人消息 [英] Facebook API support for User-Page private messages

查看:30
本文介绍了Facebook API 支持用户页面私人消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,根据品牌页面的新 FB 更改(将它们移动到时间线结构),粉丝/会员/喜欢者可以私信页面"或品牌".我已经对此进行了测试,它似乎有效.

As I understand, as per the new FB changes for brand pages (moving them to timeline structure), fans/members/likers are allowed to private message a "Page" or "Brand". I have tested this out and it seems to be working.

我们有一个应用程序,允许品牌通过该应用程序使用他们的页面,该应用程序在标准 facebook 界面之上提供了许多附加服务,用于执行诸如 - 阅读墙、贴到墙、在墙上添加评论、发照片等

We have an app that allows brands to use their page through the app and the app provides many additional services on top of the standard facebook interface for actions such as - read wall, post to wall, add a comment to the wall, post photo etc.

随着用户可以在 FB 页面上私信的新变化,我们希望扩展我们的应用程序的功能,以便能够读取我们有权监控的页面的私信(即拥有manage_pages"权限.)作为扩展,对这些私人消息的响应也应该从应用程序本身发生是很自然的.

With the new change coming in where users can private-message FB pages, we would like to extend our app's functionality to be able to read the private-messages for the pages for which we have the permissions to monitor (i.e. having the "manage_pages" permission.) As an extension, it is natural that responses to these private-messages should also happen from the app itself.

我的问题是 - Facebook 是否已经开始支持在其 Graph API 中为具有manage_pages"权限的应用读取用户->页面和响应页面->用户私人消息的能力?我尝试了他们当前的文档和他们的 Graph API Explorer 工具,但找不到相同的支持.

My question is - has Facebook started to support the ability to read user->pages and responding with page->user private-messages in it's Graph API for apps having "manage_pages" permission? I tried out their current documentation and their Graph API Explorer tool and could not find support for the same.

请在您的回复中添加对 API/Reports/FB Releases 的引用.谢谢.

Please add reference to API/Reports/FB Releases in your responses. Thanks.

[注意:FB 目前似乎不支持此功能,即使在测试版中也是如此.由于这是完成应用程序为了代表所有者管理页面而可以完成的一系列事情的关键功能,因此我已在 http://developers.facebook.com/bugs/108255755971025 - 随意投票,以便我们能够让 FB 工作并解决这个问题]

[Note: It seems that FB is not supporting this feature at the moment, even in beta. Since this is a critical feature in completing the spectrum of things an app can do in order to manage pages on behalf of owners, I have filed a feature change on FB's bug tracking at http://developers.facebook.com/bugs/108255755971025 - feel free to vote up in order for us to be able to get FB to work and resolve this issue.]

推荐答案

就在昨晚,Facebook 刚刚宣布了用于管理页面的新 API,其中包括从页面读取消息、隐藏帖子等的功能.

Just last night, Facebook has just announced new APIs for managing Pages which include, among others, the ability read messages from a page, hiding a post etc.

引自 https://developers.facebook.com/docs/reference/api/page/ :

您可以通过发出 HTTP GET 请求来读取页面的消息/PAGE_ID/conversations with a Page Access Token and read_mailbox许可.

You can read the messages for a page by issuing an HTTP GET request to /PAGE_ID/conversations with a Page Access Token and read_mailbox permission.

回复

请注意,页面只能回复用户的消息.这不可以发起与用户的私人消息.另外,一个页面可以不响应在用户回复之前对用户的消息进行了两次以上.

Note that a page can only reply to a user's message. It cannot initiate a private message with a user. Also, a page can respond not more than twice to a user's message before the user has replied back.

您可以通过向用户发出 HTTP POST 来回复用户的消息/CONVERSATION_ID/messages 带有以下参数.

You can reply to a user's message by issuing an HTTP POST to /CONVERSATION_ID/messages with the following parameters.

这篇关于Facebook API 支持用户页面私人消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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