Photon-electron interactions in graphene-based heterojunctions