With seemingly unstoppable momentum during the summer of 1967, on 18 May The Beatles signed a contract to represent the BBC, and Britain, on Our World, the world’s first live television satellite link-up to be seen by approximately 400 million people across five continents.
The Beatles’ appearance was announced four days later, on 22 May. John Lennon wrote the song ‘All You Need Is Love’ especially for the occasion, to the brief given by the BBC: it had to be simple so that viewers around the world would understand it.
We were big enough to command an audience of that size, and it was for love. It was for love and bloody peace. It was a fabulous time. I even get excited now when I realise that’s what it was for: peace and love, people putting flowers in guns.
Our World took place on 25 June 1967. Between the announcement and the broadcast date, The Beatles recorded the rhythm track and some basic vocals.
Source: beatlesbible.com