Why is it a poor analogy? Both the baker and Facebook deal with customers who want to use their service to express themselves. Neither the baker, or Facebook wanted to be seen as endorsing, associating with, promoting, contributing to, or assisting those types of customers. so they refused to do business with them.

As to my personal feelings on the whole baker issue. I thought the baker had little to no standing to refuse to bake that wedding cake. Weddings don’t require a cake, and the couple would have already been married before the cake was even carved.

The problem i see, is that is seems Facebook and YouTube can deny the business of customers because they don’t like their views, and on that basis don’t wish to be associated with them, but the baker has no such choice.