Upvote:10
No, you cannot. From the Mexican embassy in UAE's web page:
The applicant has to be resident in the United Arab Emirates
Visiting UAE for tourism would not fulfill the residence requirement.
Upvote:11
No you cannot. Most countries expect applicants to apply in countries in which they are nationals or long term residents.
Embassy of Mexico in the Federal Republic of Nigeria
Welcome to the website of the Embassy of Mexico in the Federal Republic of Nigeria. Through this service, you can get updates on the various documentation services, promotion and protection offered by this representation, with jurisdiction in Angola, Benin, Burkina Faso, Cameroon, Congo, Gabon, Guinea, Guinea Equatorial, Niger, Nigeria, Togo and the Economic Community of West African States (ECOWAS).