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

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

问题描述

据了解,根据品牌页面的新FB更改(将其移动到时间轴结构),粉丝/会员/喜好者可以私人消息页面或品牌。我已经测试过了,似乎正在工作。



我们有一个应用程序,允许品牌通过应用程序使用他们的页面,该应用程序在标准的Facebook界面之上提供了许多额外的服务,例如 - 阅读墙,张贴到墙上,向墙上添加评论,张贴照片等。



随着新的更改进入用户可以私人消息FB页面,我们希望扩展我们的应用程序的功能,以便能够读取我们具有监视权限的页面的私有消息(即具有manage_pages权限)。作为扩展,对这些私人消息的响应自然也应该从应用程序本身发生。我的问题是 - Facebook开始支持读取用户 - >页面的能力,并在页面 - >用户私人消息中进行响应,它的图形API适用于具有 manage_pages权限?我尝试了他们当前的文档和他们的Graph API Explorer工具,找不到相同的支持。



请在您的回复中加入API / Reports / FB Releases的参考。谢谢。



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

解决方案

昨天晚上,Facebook刚刚宣布了新的API管理页面,其中包括读取能力来自页面的邮件,隐藏信息等。



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


您可以通过向页面访问令牌和read_mailbox
permissio发出一个HTTP GET请求到
/ PAGE_ID /对话,读取页面的消息n。


回复


请注意一个页面只能回复一个用户的消息。它不能
与用户发起私人消息。此外,在用户回覆之前,页面可以不响应用户邮件的
超过两次。



您可以通过发出用户的邮件来回复用户的邮件HTTP POST到
/ CONVERSATION_ID /包含以下参数的消息。



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.

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.

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.

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.

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

[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.]

解决方案

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.

Quotes from https://developers.facebook.com/docs/reference/api/page/ :

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.

Reply

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.

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天全站免登陆