Personally, I must say, social-skills and rules were learned "the hard way" early-on (to say the least). I quickly learned intuitively, as well as by osmosis (from both advice, and "real-world" examples) later-on, up to the present! Yet, active participation in anything beyond small-talk still remains a challenge.
It must be mentioned, "When in Rome, do as the Romans do!"
Here is a post on small-talk: 'Small Talk: First Conversations vs. Subsequent Conversations.'
viewtopic.php?f=7&t=318389ADDENDUM: To clarify, the adage "When in Rome, do as the Romans do" can apply anywhere; that is when we find ourselves in unfamiliar situations (even in our own communities), carefully note the common sentiments/actions of surrounding people. It's been noted that people on the Autism Spectrum can sometimes feel like strangers in their own lands!