The law of attraction is also known as the law of universal magnetization, or how like attracts like. One resonates at a specific psychological level at a given moment, and it is this level of being that determines our relationship with others at the same or similar level.
Samael Aun Weor also spoke about the magnetic center of gravity in his books on psychology, which relates to this principle. We gravitate towards different social groups depending on our interests, idiosyncrasy and level of consciousness. If we are alcoholics, we will drink at bars with other alcoholics. If we are doctors, we will be in contact and associate with other doctors. If we go to school, we will relate with others who also receive an education, etc.
Does this help?