Search code examples
ruby-on-railsomniauth

Using the Smart phone URL with Omniauth


I am developing an application in Rail 3 using the Omniauth gem for Facebook Connect. Currently the gem is using the normal Facebook website for login but I know that Facebook got a specialised website for Smartphones located at touch.facebook.com.

Does anyone know how to use the smart phone URL with the Omniauth Gem instead of the default?


Solution

  • Apparently, according to Facebook you just have to pass an additional parameter to the authentication url to get the wap or touch versions of the site: http://developers.facebook.com/docs/guides/mobile/#web

    Have you tried using the :options available in the facebook strategy code linked to by Marcel in the answer above? It looks like it should be pretty simple!