def get_oauth_url(scope, redirect_uri, extra_params=None):
 scope = parse_scope(scope)
 query_dict = QueryDict('', True)
 query_dict['scope'] = ','.join(scope)
 query_dict['client_id'] = facebook_settings.FACEBOOK_APP_ID
 query_dict['redirect_uri'] = redirect_uri
 oauth_url = 'https://www.facebook.com/dialog/oauth?'
 oauth_url += query_dict.urlencode()
 return oauth_url

def get_oauth_url ( scope , redirect_uri , extra_params = None ) : scope = parse_scope ( scope ) query_dict = QueryDict ( '' , True ) query_dict [ 'scope' ] = ',' . join ( scope ) query_dict [ 'client_id' ] = facebook_settings . FACEBOOK_APP_ID query_dict [ 'redirect_uri' ] = redirect_uri oauth_url = 'https://www.facebook.com/dialog/oauth?' oauth_url += query_dict . urlencode ( ) return oauth_url
returns the oauth url for the given scope and redirect_uri .