The social network will temporarily stop running political adverts after polls close on 3 November.