Facebook的应用程序与多个国家code顶级域名(ccTLD)进行 [英] Facebook app with multiple country code top level domains (ccTLD)

查看:183
本文介绍了Facebook的应用程序与多个国家code顶级域名(ccTLD)进行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们假设有一个通过以下域提供一个Web应用程序:
www.something.com
www.something.co.uk
www.something.de

Let's assume we have a web application that is served through the following domains: www.something.com www.something.co.uk www.something.de

我不知道是否有验证用户的Facebook帐户,以从这些不同的领域获得他们的墙上,并使用相同的Facebook应用程序的方式。

I wonder if there is a way to authenticate user's facebook account, to get access to their wall from these different domains and use the same facebook application.

我不知道我是否可以通过Facebook应用程序的设置页面或通过源$ C ​​$ C,它的变化。

I don't know if I can make that change via facebook application's settings page or via source code.

(我在asp.net环境中使用Facebook开发工具包.NET)

(I am using facebook developer toolkit for .NET in asp.net environment)

推荐答案

从我的理解,这是很容易,只要做,因为,首先登录用户在应用程序获取所有适当的权限,这样做你想要做的动作

From my understanding this is easy to do as long as the application that first logs the user in gets all the appropriate permissions to do this the action you want to do.

然后所有的其他领域需要做的是使用相同的应用程序键等,以使其请求查看用户的墙壁也不管它应该发生在用户会话,甚至是积极的。

then all your other domains need to do is use the same app key etc to make its requests to view a users walls and it should happen regardless of the user session even being active.

一旦用户批准应用程序,以获取信息为关于我和墙等应用程序可以做到这一点,而用户仍然您的应用程序ID在他们的帐户批准。

once a user approves your application to get info to "about me" and "wall" etc the application can do this while the user still has your application id approved on their account.

您的应用程序将工作这这样的:

your application would work this this:


  • 您有一个网址和一个应用程序ID和秘密
  • 单个应用程序
  • 用户登录到你的应用程序,你请求允许查看他们的墙上等。

  • 您然后重定向到你合适的域名 - 但一定要保持,Facebook的发送您的应用程序(包括会话查询字符串元素)整个查询字符串

  • 继续,如果你在页面之间移动,随身携带的查询字符串

  • you have a single application with a single URL and single application id and secret
  • the user logs into you application and you request permission to view their wall etc.
  • you then redirect to your appropriate domain name - but make sure you keep the entire querystring that facebook sent your application (including the session querystring element)
  • continue to carry around the querystring if you move between pages

这篇关于Facebook的应用程序与多个国家code顶级域名(ccTLD)进行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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