'Checks an HTTPError to see if Facebook is down or we are using the
API in the wrong way
Facebook doesn\'t clearly distinquish between the two, so this is a bit
of a hack'

@classmethod
def is_server_error(cls, e, response):

    from open_facebook.utils import is_json
    server_error = False
    if (hasattr(e, 'code') and (e.code == 500)):
        server_error = True
    error_matchers = ['<title>Facebook    |    Error</title>', 'Sorry,    something    went    wrong.']
    is_error_page = all([(matcher in response) for matcher in error_matchers])
    if is_error_page:
        server_error = True
    if is_json(response):
        server_error = False
    return server_error
