Wtf . explain this

Omg someone pleaseeeeee tell me.....
Why does my boyfriend get mad or upset when I post a photo of myself on Facebook or Instagram??? Says I do it for attention from other guys. Then he goes through all the people that like my photo and complains if any guys like it. Makes me feel like I can't post a photo of myself when I'm feeling beautiful 
Ugh I hate it :( what do I do??