You become liable for FICA (Social Security and Medicare) taxes the day your H-1B visa becomes effective. Prior to that, you are NOT liable for these taxes and should NOT pay them even if you file as a resident alien.
BTW, you will file as a resident ONLY IF you are married. If you are single, you will file as a dual-status alien.