【问题标题】:Issues with Fb App Domains and Site URL:Fb 应用程序域和站点 URL 的问题:
【发布时间】:2012-07-26 16:02:59
【问题描述】:
I am trying to integrate facebook connect to all my websites. 
For example I have a website called example.com and many sub domains 
like,
   bob.example.com,
   claire.second.example.com,
   swiss.example.com and so on. 
My objective was to use the same App ID to all the websites. 
Well I did find, as long as the base URL is the same 
(i.e in my case example.com) we can use the same App Id for all 
the websites. So I put example.com in my Site URL and the remaining domain 
names in the App Domains field. But when I compile the code, the fb connect works 
only for the Site URL and not the App domains. BTW I am using the example in this
following link, 

http://thinkdiff.net/facebook/new-javascript-sdk-oauth-2-0-based-fbconnect-tutorial/ 如果有人知道解决方案,请告诉我。

【问题讨论】:

    标签: facebook facebook-graph-api appdomain fbconnect fbjs


    【解决方案1】:

    回答我自己的问题。

    • 问题是我使用 localhost 进行测试(localhost 不起作用)。
    • 并在 APP 域字段中包含所有基本 URL 相同的域,以使其正常工作。

    https://www.facebook.com/dialog/oauth?client_id=CLIENTAPPID&redirect_uri=SITEURL(OR)APPDOMAINURL&response_type=token

    将上面的 URL 替换为您的客户端 ID 和站点 URL 以检查它是否有效,而不是在您的站点中实现 FB JS SDK 代码。

    【讨论】:

      猜你喜欢
      • 2016-02-18
      • 1970-01-01
      • 1970-01-01
      • 2011-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多