How can I add localhost:3000 to Facebook App for development

后端 未结 8 1547
忘掉有多难
忘掉有多难 2020-12-08 10:24

I am working on a Rails 4 app. On my laptop, development is done at localhost:3000. The actual domain of the site is roomidex.com.

How can

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-08 10:43

    Your error is saying

    localhost URL is not allowed in the application

    I know, FB does not give a s**t about explaining, what do to in those moments, however, as far as I am concerned, I have found workaround.

    Basically, you need to "whitelist" locahost url in your app

    Here is what you are going to do

    1. Go to the app edit/summary page
    2. In the fourth field App Domains, you should already have roomidex.com, so add another address localhost
    3. The urls mentioned above are only valid, if each one of them is put into tabs, where you set, how you app integrates with Facebook (website with facebook login, App on facebook, Mobile web, …)
    4. I do this: I put my working URL, in your case roomidex.com into Website with facebook login, and my test, localhost URL, either into App on facebook or Page tab

提交回复
热议问题