Facebook的通知 - 什么是code参数的URL [英] Facebook Notification - What is the code parameter on the URL

查看:146
本文介绍了Facebook的通知 - 什么是code参数的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个与Facebook的整合的移动应用。到目前为止,我只开发Android版本。该应用程序发送通知给用户,以便他们可以确认在足球比赛的presence。

I'm developing an Mobile App that is integrated with Facebook. So far I've only developed the Android version. The app sends notifications to users so they can confirm their presence on soccer matches.

在上使用Facebook的一切桌面版本的通知,用户点击进入精细,facebook的画布页发送带有signed_request POST请求。但在iOS版本,因为我没有应用程序的是,将用户重定向到以下网址:

When a user clicks on the notification using a desktop version of the facebook everything goes fine, the facebook canvas page sends a post request with a signed_request. But on the iOS version, since I don't have the app yet, the user is redirected to the following url:

[我的画布网url]?ref=notif&$c$c=AQD6fUp8oAvz9pDD1ygEfoaXW6ls3jEyhPsBmZP-nXrhQw67U0BBqZXJPa6MDyJu1_kSuUYjFPP-RtGRvdv7iyADlJavuZqqDsnNF7AAfDSatopNQEeBqplEUhhDXVDZcUSBFjZFcEmhwdboPliFE5jbjk4PyJY1_vOaE4b4UAbs11pOJXGRq2RU_mJUC2GPzBT63W-aewc60bHTiXrMzgzI_Da3Sp0mlAa7SQn1rF-co2Au-BDDGpV694bOmC5PtJBpIJTU_FO_bwl-vb3bDeQOp-XRLe8_K3JP3hQhutcFy7jeSySP0D2dhVDPgwUn9u8&fb_source=notification&request_ids=196632097193420&app_request_type=user_to_user#_=

[my canvas web url]?ref=notif&code=AQD6fUp8oAvz9pDD1ygEfoaXW6ls3jEyhPsBmZP-nXrhQw67U0BBqZXJPa6MDyJu1_kSuUYjFPP-RtGRvdv7iyADlJavuZqqDsnNF7AAfDSatopNQEeBqplEUhhDXVDZcUSBFjZFcEmhwdboPliFE5jbjk4PyJY1_vOaE4b4UAbs11pOJXGRq2RU_mJUC2GPzBT63W-aewc60bHTiXrMzgzI_Da3Sp0mlAa7SQn1rF-co2Au-BDDGpV694bOmC5PtJBpIJTU_FO_bwl-vb3bDeQOp-XRLe8_K3JP3hQhutcFy7jeSySP0D2dhVDPgwUn9u8&fb_source=notification&request_ids=196632097193420&app_request_type=user_to_user#_=

我不知道如何解析这个URL,它不具有签名的请求。我GOOGLE了一点点,发现这个code查询参数可以用来获得访问令牌(建筑登陆时),但我需要一个REDIRECT_URI。我不知道我可以用这个URL做的就是这是什么用户。

I don't know how to parse this url, and it doesn't have a signed request. I've googled a little bit and found out that this code querystring parameter can be used to get an access token (when building login), but I need a redirect_uri. I don't know what I can do with this URL to get what user this is about.

推荐答案

你看到的关于它的官方文章?它有一个良好的平价解释那里。我不认为这是在所有不愉快的经历。

Did you saw the official article about it? It has a parity good explanations there. I don't see it as a bad experience at all.

这篇关于Facebook的通知 - 什么是code参数的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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