在子域上实施 Facebook Connect
如何在 Facebook 上保留我的应用程序设置,以便它支持子域?
我刚刚在学校社区集成了一个问答类型的论坛,可在 http://swades.engr 上找到.scu.edu/askswades/
因此,这是我在 Facebook 上的设置:
Site URL : http://swades.engr.scu.edu/
Site Domain : scu.edu
我无法让它以这种方式工作。我做错了什么?我仔细检查了代码上的 API 设置,一切正常。
如果有人能帮助我,那就太好了!提前致谢!!
How do I keep my applications settings on Facebook, so that it supports subdomains?
I just integrated a question and answer type forum on a school community and its available at http://swades.engr.scu.edu/askswades/
Thus here were my settings on Facebook :
Site URL : http://swades.engr.scu.edu/
Site Domain : scu.edu
I am not able to get it working this way. What am I doing wrong? I double checked the API settings on code, and its all right.
Will be great if someone can help me! Thanks in advance!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是正确设置的并且应该可以工作。如果没有看到错误,就很难知道哪里出了问题。
只要您仅在作为您站点域的子域的 URL 上实施 Facebook 身份验证,一切都很好。站点 URL 用于链接目的,它不会将 FB Auth 绑定到该 URL。
您可以通过在 scu.edu 子域上提供的任何页面中调用 JS 中的 FB.login() 来检查身份验证是否正常工作: https://developers.facebook.com/docs/reference/javascript/FB.login/
This is setup correctly and should be working. Without seeing errors, its hard to know what's broken.
As long as you only implement Facebook Authentication on URLs which are a subdomains of your Site Domain, all is well. The Site URL is for linking purposes, it does not tie FB Auth to that URL.
You can check Auth is working by calling FB.login() in JS in any page which is being served on a subdomain of scu.edu: https://developers.facebook.com/docs/reference/javascript/FB.login/
Facebook 表示所有子域名都可以使用,但您也可以尝试将 swades.engr.scu.edu 添加到您的域名列表中。
Facebook says that all subdomains will work, but you can try adding swades.engr.scu.edu also to your list of domains.