具有“应用请求”通知重定向到网站 [英] Have a "apprequests" notification redirect to a website

查看:164
本文介绍了具有“应用请求”通知重定向到网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有FB请求对话框(http://developers.facebook.com/docs/reference/dialogs/requests/)设置,所以我的用户可以邀请朋友。一切都正常,它向用户和所有人发送通知,但是我想要这样做,以便当收件人点击通知或宝石时,将它们带到我的网站而不是FB页面/应用程序。

解决方案

目前无法在请求中设置重定向uri。执行此操作的唯一方法是在应用程序画布上创建一个js重定向。



top.location.href ='YOUR_SITE'

I have the FB request dialog (http://developers.facebook.com/docs/reference/dialogs/requests/) setup so my users can invite friends. Everything is working fine, it sends a notification to the user(s) and all, but I want to have it so that when the recipient clicks the notification or 'jewel' it takes them to my website instead of a FB page/app.

解决方案

At the moment it's not possible to set the redirect uri on a request. The only way to do this is to have a js redirect on you application canvas.

top.location.href='YOUR_SITE'

这篇关于具有“应用请求”通知重定向到网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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