Welcome to HCM
I would like to tell you that pain,swelling & difficulty in opening mouth are common symptoms seen after third molar extraction.Its nothing much to worry about because it will resolve within few days.
I would suggest you to avoid spitting because it will just disturb healing of socket.
Take prescribed medicines by your dentist
Do warm saline rinses twice a day.
Visit your dentist for regular check-up.