I don’t know if you’re both just kids or if you’re older. If you’re young, maybe he does really like you but doesn’t feel confident enough to walk away from his friends to spend time with a girl.
If you’re both older, there’s no real excuse for him to ignore you and just spend all his time with his friends. He’s selfish and not the kind of guy you want to commit to because I can’t imagine he’s ever going to change for you.
Either way, young or old, it doesn’t sound like he truly ‘loves’ you. So you have to decide whether or not you want to dump him and look for someone new. If you stick with him, expect to keep being disappointed.