title: Devise + Omniauth for Facebook Connect - How to use a dialog for permissions
body: <p>currently with rails 3 + devise + omniauth for facebook connect, when you send the user to Facebook to click "Allow" the following url type is generated:</p>
  
  <p><a href="https://www.facebook.com/connect/uiserver.php?app_id=XXXXXXXX&amp;method=permissions.request&amp;display=page&amp;next=XXXXXX&amp;response_type=code&amp;fbconnect=1&amp;perms=email" rel="nofollow">https://www.facebook.com/connect/uiserver.php?app_id=XXXXXXXX&amp;method=permissions.request&amp;display=page&amp;next=XXXXXX&amp;response_type=code&amp;fbconnect=1&amp;perms=email</a></p>
  
  <p>The problem is that is for a full window view and I want to show this dialog in a popup dialog like seen on Blekko where the URL looks like: </p>
  
  <p><a href="https://www.facebook.com/dialog/permissions.request?api_key=169076986451072&amp;app_id=169076986451072&amp;display=popup&amp;fbconnect=1&amp;locale=en_US&amp;next=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Dfb26db118%26origin%3Dhttps%253A%252F%252Fblekko.com%252Ff3c37c9a24%26relation%3Dopener%26transport%3Dpostmessage%26frame%3Df81d7582%26result%3D%2522xxRESULTTOKENxx%2522&amp;perms=offline_access%2Cuser_likes%2Cuser_location%2Cfriends_likes%2Cfriends_location%2Cuser_checkins%2Cfriends_checkins%2Cpublish_stream%2Cread_stream&amp;return_session=1&amp;sdk=joey&amp;session_version=3" rel="nofollow">https://www.facebook.com/dialog/permissions.request?api_key=169076986451072&amp;app_id=169076986451072&amp;display=popup&amp;fbconnect=1&amp;locale=en_US&amp;next=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Dfb26db118%26origin%3Dhttps%253A%252F%252Fblekko.com%252Ff3c37c9a24%26relation%3Dopener%26transport%3Dpostmessage%26frame%3Df81d7582%26result%3D%2522xxRESULTTOKENxx%2522&amp;perms=offline_access%2Cuser_likes%2Cuser_location%2Cfriends_likes%2Cfriends_location%2Cuser_checkins%2Cfriends_checkins%2Cpublish_stream%2Cread_stream&amp;return_session=1&amp;sdk=joey&amp;session_version=3</a></p>
  
  <p>Any idea on how I can get the dialog url with omniauth? Thanks</p>