后AP prequest Facebook的链接 [英] facebook link after apprequest

查看:246
本文介绍了后AP prequest Facebook的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要建一个FB应用。我使用的是JS SDK我的网站上邀请朋友们到我的FB的应用程序。

I'm building an FB application. I'm using the JS SDK on my website for inviting friends to my FB app.

FB.ui({
  method: 'apprequests',
  display: 'iframe',
  access_token: resp.accessToken,
  message: 'Please join Bashman'
}, function(response){
  //nothing important here
});

当我邀请一些朋友FB,那么他们的通知栏上,他们有一个链接,指向我的应用程序,而不是让他们接受我的邀请。

When I invite some FB friend, then on their notification bar, they have a link, that points to my app, instead to let them accept my invitation.

因此​​,用户会立即重定向到我的应用程序,而不是必须先接受邀请的可能性。

So the user is redirected instantly to my app instead of have the possibility to accept the invitation first.

我已经做了两个应用程序请求的截图,第一个是不是我的,它重定向像预期的那样在接受邀请区,它指向:

I've made a screenshot of two app requests, the first one is not mine, it redirects as expected to the accept invitation area, it points to:

<一个href=\"http://www.facebook.com/?sk=apps&scrollto=confirm_162129010502890&ref=notif&notif_t=app_request\" rel=\"nofollow\">http://www.facebook.com/?sk=apps&scrollto=confirm_162129010502890&ref=notif&notif_t=app_request

下一个是从我的FB的应用程序,它直接指向我的应用程序,而不是词义面积:

The next one is from my FB app, and it points directly to mine app, instead of the acceptation area:

<一个href=\"http://apps.facebook.com/orgbashman/?request_ids=293075284044707%2C182589535157904&ref=notif&notif_t=app_request\" rel=\"nofollow\">http://apps.facebook.com/orgbashman/?request_ids=293075284044707%2C182589535157904&ref=notif&notif_t=app_request

http://apps.facebook.com/orgbashman/?request_ids=293075284044707%2C182589535157904&ref=notif&notif_t=app_request

我试图也用

REDIRECT_URI

redirect_uri

参数

FB.ui({
  method: 'apprequests',
  display: 'iframe',
  access_token: resp.accessToken,
  message: 'Please join Bashman',
  redirect_uri: 'http://www.facebook.com/sk=apps&scrollto=confirm_134863713284095&ref=notif&notif_t=app_request',
}, function(response){
  //nothing important here
});

但没有运气。

我怎样才能,而不是直接pointting到我的FB的应用程序在通知区域中指向接受FB应用按钮链接?

How I can make the link in the notification area point to the accept FB app button instead of pointting directly to my FB app ?

推荐答案

相反改写被Facebook所取得的博客文章中,我只是去链接到它:

Instead of rewriting the blog post made by Facebook, I'm just going to link to it:

http://developers.facebook.com/blog/post/464/

我的应用程序我建立测试了这一点,我得到了相同的结果你。但只要我禁用升级到要求2.0 高级栏目编辑应用程序设置时,请求工作完全只要你想他们。

I tested this out with an app I'm building and I got the same results as you. But as soon as I disabled Upgrade to Requests 2.0 in the Advanced section when editing the app settings, the requests worked exactly as you want them to.

和这里的什么可能性的详细解释3.请提供2.0:

And here's a detailed explanation on what possibilities Requests 2.0 provide:

<一个href=\"http://www.insidefacebook.com/2011/02/16/facebook-introduces-upgrade-to-requests-2-0-to-simplify-re-engagement/\" rel=\"nofollow\">http://www.insidefacebook.com/2011/02/16/facebook-introduces-upgrade-to-requests-2-0-to-simplify-re-engagement/

这篇关于后AP prequest Facebook的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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