I am less than proud to say that in the past I've said things with friends of mine that I wouldn't have otherwise said. However, I'd like to think that since then I've gotten better about standing my ground and not doing things I don't agree with because I'm afraid people will stop being my friends.
With strangers or acquaintances, or people who I don't generally respect beyond the basic amount that I accord to everyone, it's a whole different story. I've stood up in front of a room of people and spoken for an unpopular opinion many times, often in situations where I knew that I was going to be the only one to do it, and though it was sometimes scary, I also knew it had to be done. Likewise, I've never followed along with behaviors or beliefs just because a large number of people have them. If I didn't want to do something because it wasn't comfortable, enjoyable or necessary, I simply wouldn't do it, and let other people think I was a weirdo. Such people wouldn't want to be my friends anyways, so why bother trying to blend in with them?