Search code examples
facebookapikeyapi-key

Api Keys and domains


Apologies in advance if this is already answered somewhere, but I didn't see it in searching. How can I set up may Facebook app so the API key works for both http://mysite.com and http://www.mysite.com. Right now www.mysite.com works fine, but mysite.com breaks when trying to use the API.


Solution

  • Set the App Domain to both of them - you can now set multiple domains for the App Domain in the Dev app.

    Source: https://developers.facebook.com/blog/post/570/