'Validate if all the required_permissions are currently given
by the user
**Example**::
open_facebook.has_permissions([\'publish_actions\',\'read_stream\'])
:param required_permissions:
A list of required permissions
:returns: bool'

def has_permissions(self, required_permissions):

    permissions_dict = self.permissions()
    has_permissions = True
    for permission in required_permissions:
        if (permission not in permissions_dict):
            has_permissions = False
    return has_permissions
