The president said he wanted to get a first-hand glimpse of the "new ideas" coming to life among the region's top tech companies and entrepreneurs during his visit.

During the talk, Peres unveiled his own official Facebook page, which he launched during his visit to the social networking company's headquarters.

The president's page has so far drawn tens of thousands of friends, Vardi said.

When asked about the threat of war with Iran, Peres stressed the need to exhaust all "bloodless" options, such as the current economic sanctions being imposed on the country, before launching any attacks.

However, he also echoed President Barack Obama's recent statement that "no options are off the table" and called Iran a terrorist center.

"If they were to acquire a nuclear bomb, it would be a real danger," he said.

The president's talk ended on a far lighter note with the unveiling of a rap video made for his new Facebook page.

In it, Peres urges those watching to "be my friend for peace" over a backdrop of synthesized beats.