Local Facebook App Development using localhost

三世轮回 提交于 2019-12-08 16:54:08

问题


Is it possible to develop facebook apps locally on my system so that the callback URL need not be a public URL like http://abc.com and instead can be an internal IP address like localhost http://127.0.0.1?


回答1:


It is now possible to develop Facebook apps locally.

I believe this is true especially if you're developing in an iframe, which is now the standard way of developing facebook apps (FBML is deprecated).

In case this does not work, there are still some ways to make working more convenient.

Take a look at this answer:

Testing FB apps is still a rather primitive process.

I generally setup a test application that is a complete copy of the production settings inside the FB development environment that uses an SSH tunnel to point to my development server. You can setup as many applications as you need inside FB - I generally have a development application, a staging app and production. Staging and Production are both on "live" servers rather than an SSH tunnel.

The rest of the answers to this question detail different workflows that people have utilized to make it more convenient to develop on a remote host.




回答2:


you can use http://127.0.0.1/ProjectName as the callback url, or your ip address itself



来源:https://stackoverflow.com/questions/2731650/local-facebook-app-development-using-localhost

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!