catalogApp.py
def fbdisconnect():
    '''
    Disconnects a user from Facebook.
    '''
    facebook_id = login_session['facebook_id']
    # The access token must me included to successfully logout
    access_token = login_session['access_token']
    url = 'https://graph.facebook.com\
            /%s/permissions?access_token=%s' % (facebook_id, access_token)
    h = httplib2.Http()
    result = h.request(url, 'DELETE')[1]
    return "you have been logged out"

    Disconnects a user from Facebook.
    
Disconnects a user from Facebook.
Disconnects a user from Facebook .
def fbdisconnect():
    facebook_id = login_session['facebook_id']
    access_token = login_session['access_token']
    url = 'https://graph.facebook.com\
            /%s/permissions?access_token=%s' % (facebook_id, access_token)
    h = httplib2.Http()
    result = h.request(url, 'DELETE')[1]
    return "you have been logged out"
def fbdisconnect ( ) : facebook_id = login_session [ 'facebook_id' ] access_token = login_session [ 'access_token' ] url = 'https://graph.facebook.com\
            /%s/permissions?access_token=%s' % ( facebook_id , access_token ) h = httplib2 . Http ( ) result = h . request ( url , 'DELETE' ) [ 1 ] return "you have been logged out"
Disconnects a user from Facebook.
Disconnects a user from Facebook .
'''
    Disconnects a user from Facebook.
    ''' # The access token must me included to successfully logout