Why did I lost all my apps?

I'm kind of freaking out right now so I'm sorry if it's not clear!

First time Iphone user, did what my friend told me to put music in my phone.
Well..

ITunes removed all my apps and replaced them by my Mp3

My question is: What the hell happened?

I can see my apps in itunes, what do I do?
Are you logged into iTunes? Maybe you need to 'reauthorize' the computer.
I'm kind of freaking out right now so I'm sorry if it's not clear!

First time Iphone user, did what my friend told me to put music in my phone.
Well..

ITunes removed all my apps and replaced them by my Mp3

My question is: What the hell happened?

I can see my apps in itunes, what do I do?

In iTunes, there are tabs along the top after you plug in your iPhone, under the "Apps" tab, do you have Sync Apps checked?

You need to be signed into iTunes on your phone and your computer (same account), and your computer needs to be authorized with the same account (under advanced).
Other thing I can think of is that if you previously synced to another computer and then switched, that can cause these things to happen.
I think all your apps on you iPhone Sync on iTune. Anuyway you can transfer it again to you iPhone.🙂

Original thread: https://forums.imore.com/threads/why-did-i-lost-all-my-apps.189867/