A man who raped a schoolgirl he invited to his home after grooming her over social media has been put behind bars.