If you want to stay in Togo for more than 7 days, you can get a visa before you go from a Togolese embassy or consulate. The exact process for getting a Togo visa depends on which embassy or consulate you go to, but it can be summed up as follows:
Contact the embassy or consulate or, if you can, go to their website to find out when they are open, what days they work, and if there are any other special requirements.
Fill out the application form for a Togo visa.
Get the documents you need (see the documents below)
Pay the visa fee for Togo.
Send the application and documents to the embassy or consulate. Some diplomatic offices let visa applications be sent in by mail, especially if the person applying lives far away.
Wait until the application for the visa is processed. Depending on how you submitted your application, you will either have to go pick up your passport in person or have it sent back to you.