Search code examples
ruby-on-railsfacebook-graph-apifacebookruby-on-rails-3.1tunnel

Public URL for localhost app, to use with Facebook


I am developing an app on rails 3.1 that will be using the facebook registration plugin. I am following this tutorial to do the integration. However, while i am developing my application on localhost:3000, when i create my facebook application on facebook, I need to enter a public URL for the application.

Currently i am using this awesome gem (localtunnel) to get me a public URL and it works fine. However the problem is that the URL it provides is just temporary until i restart localtunnel. Is there a way I can get a constant URL (any ugly url will do) so that I can continue development with facebook while facebook can also access my localhost:3000 through a public URL?


Solution

  • I didn't have an problem setting the Facebook app url to localhost:3000. Have you tried that? It works fine as long as you're testing it on a computer with the rails server running.

    If that doesn't work, you might consider using a no-ip technology: www.no-ip.com (it's free for a subdomain)