The role of carbon in photodesorption