I feel Single

Me & my boyfriend has been together for 2yrs, but he always puts his friends first. I feel like I have to beg him just to spend time with me. I'm in a relationship but feel single , if that makes sense. Any Advice?