Iran has officially invited Saudi Arabia's king to visit the country, an Iranian Foreign Ministry spokesperson said on Monday, after the two regional rivals agreed to end years of hostility.