What makes people like other people? Humans have this strange behavior:
Some people like other people which are disliked by a third party of people.
But there are also people that are generally disliked by most ofthe others.

Let me make an example:

Person A, B and C like Person D
Person B, C and D like Person F, but A hates F
Person A, C and D like Person G, but B hates G
Person F and G get along well with C
...

How can you explane this strange behavior?

Some people can't get along with each other, but both have common friends, that get along with both of them. So it can't be like that they are so different from a cultural standpoint, because they have common friends that get along with both.

Do you get the point?

However there are people that are liked by most of the People and there are also people, that are commonly disliked by the majority of people.

What are they doing right/wrong?

If you say, "people like those who are similar to them", how can it be, that A and D don't get along, if both are similar to B, which can get along with both?

What are A and D doing wrong, so that they can't get along. Due to the fact, that B get's along with both, which means, that both aren't bad persons and people you can get along with.

Can you generally say what makes the difference in these groups of people?
Where do these preferences come from and why do some not get along?
The question is not, what makes someone likable (that is asked here What makes you like someone?), it's more on how to determine wheter two people like eachother or not, on what is this based and can you influence it.

Is maby, the way people get introduced, a factor? What are the big factors

Edit:

As mentioned below, the question might be rephrased to:
"How can you describe this behaviour"?
(I don't wan't to boil it down to one factor (and it's probably impossible to list all of them), but I would like to get a general Idea, on how this works.
is the question: What makes people like other people? or: how can you explain the phenomenon described above?

If it's the former, it has an answer already and this should be marked a duplicate.

I will try to answer the latter, if it can be considered on topic here.

Just because you have a mutual friend, doesn't mean you are going to be friends with someone. Humans are not this simple. The factors involved in deciding whether you like someone is very complicated. As you mentioned, the way you get introduced can definitely affect whether someone likes another person.

Humans have evolved as social creatures and our social interactions have evolved deeply like our intelligence. When you try to logically predict a phenomenon based on ONE factor when there exists a LOT more, you will not get a good prediction. It is not a strange phenomenon, it is quite natural if you consider the personalities that each person and the desires that they have in a friend. A and B might have a completely different type of friendship than B and D, by the way. To me, this question is misguided.