Adapted to refactored Graph event API.