def authorize_url(callback_url, options = {})
      url = "#{BASE_URL}/oauth/authorize?client_id=#{app_id}&redirect_uri=#{callback_url}"
      scope = options.delete(:scope)
      url += "&scope=#{scope.join(',')}" unless scope.blank?
      url += "&#{options.to_query}" unless options.blank? # Add other options. FIXME: to_query method requires Rails?!
      return url
    end
def authorize_url(callback_url, options = {})
      url = "#{BASE_URL}/oauth/authorize?client_id=#{app_id}&redirect_uri=#{callback_url}"
      scope = options.delete(:scope)
      url += "&scope=#{scope.join(',')}" unless scope.blank?
      url += "&#{options.to_query}" unless options.blank? # Add other options. FIXME: to_query method requires Rails?!
      return url
    end
Options:
 * :display - page (default), popup, wap, touch. See: http://developers.facebook.com/docs/authentication/.
 * :scope - either a String "user_photos,user_videos,stream_publish" or an
 Array like [:user_photos, :user_videos, :stream_publish]
 For more permission scopes, see http://developers.facebook.com/docs/authentication/permissions

 All other options in the options Hash will be put in the authorize_url.