The issue of friendship here has nothing to do with being Muslim or non-Muslim. You should not have taken Muslim or non-Muslim males as your friends. The Qur’an and the Sunnah have given us rules about relations between men and women.
There are two types of people: Mahram and non-Mahram. Mahram are those relatives between whom marriage is not allowed. Non-Mahram are those among whom marriage is permissible. Referring to this, Allah Almighty says: “ Forbidden unto you are your mothers, and your daughters, and your sisters, and your father's sisters, and your mother's sisters, and your brother's daughters and your sister's daughters, and your foster mothers, and your foster sisters, and your mothers-in-law, and your stepdaughters who are under your protection (born) of your women unto whom ye have gone in but if ye have not gone in unto them, then it is no sin for you (to marry their daughters) and the wives of your sons who (spring) from your own loins. And (it is forbidden unto you) that ye should have two sisters together, except what hath already happened (of that nature) in the past. Lo! Allah is ever Forgiving, Merciful.” (An-Nisaa’: 23)
Muslim men and women can socialize among the Mahrams, but not among the non-Mahrams. When men and women are in the presence of non-Mahrams then they must lower their gaze. Allah Almighty says: “And tell the believing women to lower their gaze and be modest, and to display of their adornment only that which is apparent, and to draw their veils over their bosoms, and not to reveal their adornment save to their own husbands or fathers or husbands fathers, or their sons or their husbands' sons, or their brothers or their brothers' sons or sisters sons, or their women, or their slaves, or male attendants who lack vigor, or children who know naught of women's nakedness. And let them not stamp their feet so as to reveal what they hide of their adornment. And turn unto Allah together, O believers, in order that ye may succeed. And marry such of you as are solitary and the pious of your slaves and maid servants. If they be poor; Allah will enrich them of His bounty. Allah is of ample means, Aware.” (An-Nur: 30-31)
He Almighty also says: “O ye wives of the Prophet! Ye are not like any other women. If ye keep your duty (to Allah), then be not soft of speech, lest he in whose heart is a disease aspire (to you), but utter customary speech.” (Al-Ahzab: 32)
Hence it is clear that Islam does not allow Muslims to have friends from the opposite gender. Males should not have female friends and females should not have male friends. Non-Mahram males and females may talk to each other, but should not socialize or go out in parties.
A single male and female should never be together in a place where they are all alone, isolated without the access of any one else. Islam has given these rules to save men and women from committing sin or getting involved in situations where they might commit sin.
an excerpt from the link....
http://www.islamonline.net/servlet/...h-Ask_Scholar/FatwaE/FatwaE&cid=1119503543072