使用Facebook的实时更新api接收实时页面Feed更新 [英] Receiving real-time Page feed update using facebook's real time update api

查看:234
本文介绍了使用Facebook的实时更新api接收实时页面Feed更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,只要有特定页面上的新帖,我就想收到实时通知更新。我已经提到了facebook的实时更新api指南(),以便我从该特定页面获得更新。



我也尝试过这样一个响应是真的,但是我仍然没有在页面上收到任何更新制作新帖子。



如果有人已经实现了这一点,请发布详细的操作方法。我真的很感激。 Facebook的文档不太好。



谢谢

解决方案

subscribed_apps 终结点 - 无需添加应用到一个页面: https://开发人员。 facebook.com/docs/graph-api/reference/v2.3/page/subscribed_apps



为了使实时更新工作,您需要使用 subscribed_apps 订阅终点。


So I want to receive a real time notification update whenever there is a new post on a particular page. I've referred to facebook's real-time update api guide for this (https://developers.facebook.com/docs/graph-api/real-time-updates/v2.3)

I've subscribed to page feed update for my app:

My app has "manage_pages" permission:

<fb:login-button scope="manage_pages" onlogin="checkLoginState();">

After the admin of the page logs in with my app I should be receiving pafe feed updates right? But it does not work.

Some people mentioned that I have to make a post request to this url (https://graph.facebook.com/PAGEID/tabs?app_id=APPID&method=POST&access_token=PAGE_ACCESS_TOKEN) so that I get update from that particular page.

I tried this too which gave a response true but I'm still not receiving any updates when the page makes new posts.

If anyone has achieved this, please post a detailed How-To. I'd really appreciate it. Facebook's documentation are not good.

Thanks

解决方案

Use the new subscribed_apps endpoint - no need to add the App to a Page for that one: https://developers.facebook.com/docs/graph-api/reference/v2.3/page/subscribed_apps

In order to make Realtime Updates work, you need to use subscribed_apps and the subscriptions endpoint.

这篇关于使用Facebook的实时更新api接收实时页面Feed更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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