Welcome to the Board of Health care magic
Friend excessive formation of gas is usually because of the bacteria in the gut causing production of lot of gases.
so dear you require a good GIT antibiotic for clearing all the purifying bacteria.
There should be no constipation
, daily you should pass stool at least twice so that purifying material is expelled regularly.
Hope these some measures may help you to improve your social difficulty.