Facebook to pay taxes in country where advertising profits are earned instead of via Dublin HQ

Facebook has said it will no longer record its non-US revenue through Ireland in a major change to where it pays tax.
From next year taxes will be paid in the country where advertising profits are earned.