To answer the question. You were. Even if the cab fare was the same amount in total with or without you, it's still shared between the passengers in the cab.
For business, it's different since you can expense it but socially, unless you've let them know in advance and they've okayed it, then you should expect to split the bill.