我创建了一个用于开发的示例应用程序,并创建了另一个示例应用程序,该应用程序具有除域之外的所有相同属性,因为所有 return_url 都应基于域。我在本地主机上使用一个版本,在另一个测试域中使用另一个版本。
所以每当我将所有代码复制到我的测试域时,我都需要更改应用程序 key 、 key 和返回 url 等。
我需要知道的是,是否可以为单个应用程序添加两个或更多域,并且只更改返回 url 而不更改应用程序 key 、 key 等??
更新:
抱歉,我打算在不更改应用程序 key 的情况下说,secret..这是一个打字错误,改变了问题的整个上下文。
最佳答案
您现在可以创建 Test App作为主应用的“子”应用。
Similar to Test Users, Test Apps let you quickly create Facebook App IDs for use during the development, testing, staging or QA phases of the app development lifecycle.
Test Apps are like regular apps in that they have their own App ID and independent settings, but they offer a number of advantages for use during pre-production
测试应用有自己的 URL 和域,独立于父应用。
关于facebook - 我们可以在 App 域中为 facebook 应用程序设置两个域吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7887597/