Take location and trusted accounts into account when generating embed codes