In Nigeria, like in most parts of Africa, homosexuality is generally viewed as unacceptable, and a 2014 anti-gay law took effect despite international condemnation.