Facebook login with multiple domains

后端 未结 4 1143
情书的邮戳
情书的邮戳 2020-12-08 00:33

I know that facebook allow me to specify multiple domains for my app. \"I

Bu

4条回答
  •  孤城傲影
    2020-12-08 01:27

    It is technically possible to use Facebook Connect on multiple domains, there are some limits (5 domains max).

    So the key to doing this is adding all domains in the App Domain field under your app settings.

    enter image description here

    The PROBLEM, however, is that Facebook only lets you add domains that are derived from your Canvas URL or Site or Page tag URLs, so if you try to enter anything else you get an error that looks like this:

    enter image description here

    The SOLUTION is to create App on Facebook, Website, and Facebook Tab using the ADD PLATFORM button and then put in URLs that point to your other domains. Here is an example of what I mean:

    enter image description here

    If you use a unique domain for each field you can max out with 5 different domains. I have tested this technique with up to 3 domains, but i think it should work for all 5.

    Note: Facebook admin features change from time to time, so all of this is subject to change

提交回复
热议问题