'return the redirect uri to use for oauth authorization
this needs to be the same for requesting and accepting the token'

def get_redirect_uri(self, request):

    if self.canvas:
        redirect_uri = fb_settings.FACEBOOK_CANVAS_PAGE
    else:
        redirect_uri = request.build_absolute_uri()
    if ('attempt=1' not in redirect_uri):
        if ('?' not in redirect_uri):
            redirect_uri += '?attempt=1'
        else:
            redirect_uri += '&attempt=1'
    return redirect_uri
