解析Facebook API-使用Facebook API进行实时更新的回调 [英] Parse Facebook API - Callback for real-time updates using facebook API

查看:651
本文介绍了解析Facebook API-使用Facebook API进行实时更新的回调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Parse的云后端.我正在使用ParseFacebook utils登录我的用户,但也想使用以下命令订阅其个人资料中的更改:

I am using Parse's cloud backend. I am logging my users in using the ParseFacebook utils but would also like to subscribe to changes in their profile using the following :

https://developers.facebook. com/docs/graph-api/real-time-updates/v2.0#setup

但是,这需要与回调URL进行通信,但是不幸的是,我无法在解析文档中找到任何内容.我是否需要在解析时设置自定义网络挂钩,还是错过了某些东西?另外,如果我需要设置一个Webhook来处理获取和发布,有人可以发布指向Webhooks的简单介绍的链接,因为我不知道有什么可以解决的.

However, this requires a callback url to communicate with and unfortunately, i was unable to find anything in the parse documents. Will i need to set up a custom webhook on parse or is there something that i missed out? Also if i need to set up a webhook to handle get and post, could someone post a link to an easy intro to webhooks, since i do not know anything abiut them.

请帮助.

推荐答案

您甚至可以使用ngrok应用在本地环境中测试webhook解析.看下面的URL: https://ngrok.com/

You can even use ngrok app to test webhook parsing in local environment. Look at following url: https://ngrok.com/

它将您的"http:/localhost/folder/"转换为" http://asdhjsd.ngrok.io /folder/" 即可用于测试Webhook或其他集成.

It converts your "http:/localhost/folder/" into "http://asdhjsd.ngrok.io/folder/" i.e usable to test webhooks or other integration.

这篇关于解析Facebook API-使用Facebook API进行实时更新的回调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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