I'm struggling with eating socially.

I feel like I'm 100% committed to losing this weight, but the past two days I've gone over in calories.  It's resulted in me gaining back one of the three pounds I lost.  Not good.

While the blame goes solely on myself, since I'm the one putting the food to my mouth - I am frustrated by just how many sweets, and chocolates, and "snacks" I'm offered by my friends.  They know I'm trying to lose weight.  They know I'm working out six days a week.  I don't want to yell at them for a friendly gesture, but I struggle with telling them it'd be friendlier to not offer me something (unless it's carrots, throw me carrots).

I'm finding myself reorganizing who I hang out with to reduce temptation.  Have any of you noticed a shift in who you hang out with based on eating habits?