Using the Smart phone URL with Omniauth
I am developing an application in Rail 3 using the Omniauth gem for Facebook Connect. Currently th开发者_JAVA技巧e 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?
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!
Jonathan,
The strategy for facebook is hard coded to graph.facebook.com => https://github.com/intridea/omniauth/blob/master/oa-oauth/lib/omniauth/strategies/facebook.rb
I suggest to fork the project and create something like oa-mobile.
Also, remember they got a google group : http://groups.google.com/group/omniauth?pli=1
Regards
精彩评论