With sanctions preventing American oil companies from investing in Sudan , China has emerged as a key investor in the country , Africa 's third-largest oil producer after Nigeria , a longtime OPEC member , and Angola .