WASHINGTON  When two young State Department officials took a delegation of Silicon Valley executives to Syria recently, they billed it as a chance to use the promise of technology to reach out to a country with which the United States has long had icy relations.

Instead, the visit will be remembered for a series of breezy Twitter messages that the two colleagues sent home, riffing about how visitors can buy an American-style blended iced coffee at a university near Damascus and how one of them had challenged a Syrian communications minister to a cake-eating contest.

The messages raised hackles on Capitol Hill, where some Republicans were already leery of the Obama administration’s efforts to engage Syria. They also embarrassed the State Department, which normally conducts its dealings with Damascus behind a veil of diplomatic politesse.

The two staff members, Alec J. Ross and Jared Cohen, were rapped on the knuckles for generating what two State Department officials called “stray voltage.” Yet despite the youthful indiscretion, their broader goal of using technology to further diplomacy enjoys enthusiastic support from the highest levels of the department, notably Secretary of State Hillary Rodham Clinton.