Facebook应用重定向到不同的子域

编程入门 行业动态 更新时间:2024-10-26 04:27:14
本文介绍了Facebook应用重定向到不同的子域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们正在将Facebook集成到我们的平台中;我们为不同的客户提供服务,并且每个客户都有不同的访问URL: customer1.example ; customer2.example ,依此类推.我们正在实施OAuth 2.0,以便客户能够在应用程序内执行某些Facebook操作.

We're integrating facebook in our platform; we serve different customers and each one has a different access URL: customer1.example; customer2.example and so on. We're implementing OAuth 2.0 so customers are able to perform certain facebook actions from within the app.

从文档的外观( developers.facebook/docs/authentication/),为了使授权流程正常工作,每个客户似乎需要一个facebook应用.有没有一种方法可以指定通配符"网站URL,例如:*.example?

From the looks of the documentation (developers.facebook/docs/authentication/), it seems that we'll need one facebook app per customer, to make the authorization flow work. Is there a way to specify a "wildcard" Site URL, let's say: *.example ?

推荐答案

更新3/19/2014 -有人抱怨此功能已被禁用.

UPDATE 3/19/2014 - there have been complaints that this functionality has been disabled.

facebook设置页面 明确指出这是可能的:

The tooltip text next to the App Domains setting in the facebook settings page explicitly states that this is possible:

在域和子域上启用身份验证(例如,"example"将启用* .example)

Enable auth on domain and subdomain(s) (e.g., "example" will enable *.example)

更多推荐

Facebook应用重定向到不同的子域

本文发布于:2023-11-01 11:26:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1549215.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重定向   Facebook

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!