Facebook_Helpers::check_for_errors( $response )


Source Source

File: src/integrations/facebook/helpers/facebook-helpers.php

	public function check_for_errors( $response ) {

		if ( isset( $response['data']['error']['message'] ) ) {
			throw new \Exception( $response['data']['error']['message'], $response['statusCode'] );
		}
	}