'Shortcut for self.get(\'me/permissions\') with some extra parsing
to turn it into a dictionary of booleans
:returns: dict'

def permissions(self):

    permissions_dict = {}
    try:
        permissions = {}
        permissions_response = self.get('me/permissions')
        for permission in permissions_response.get('data', []):
            if any(((value in ['granted', 'declined']) for value in permission.values())):
                for perm in permissions_response['data']:
                    grant = (perm.get('status') == 'granted')
                    name = perm.get('permission')
                    if (grant and name):
                        permissions_dict[name] = grant
            elif any(((value in [0, 1, '0', '1']) for value in permission.values())):
                permissions = permissions_response['data'][0]
                permissions_dict = dict([(k, bool(int(v))) for (k, v) in permissions.items() if ((v == '1') or (v == 1))])
            break
    except facebook_exceptions.OAuthException:
        pass
    return permissions_dict
