Login two or more accounts of one app on the same phone

How to log into two or more accounts of one app, such as social accounts like Facebook, Instagram, Messenger, WhatsApp, on the same phone?