> Companies pay taxes because they use resources and services provided in a given country (roads and other infrastructure, police protection, courts, etc.).
That's one view. Another is that they pay taxes simply because they have resources that society needs. If Facebook is trading in the UK (benefitting from access to the UK market, then I think it is reasonable that they pay tax in the UK).