To be very precise, there is no specific evidence of how the media has shaped up the foreign policy. However, various authors such as Seib have suggested the existence of an anecdotal evidence along with some theoretical arguments regarding the role of media in the making of the foreign policy.
Overall, the media might trigger a couple of factors such as reporting in favor of a country with good international relations, so as to further strengthen the ties. Or, it might cause worsening of the situation between two countries through inappropriate reporting. This is one of the few ways through which the media can play a role in shaping up the foreign policy.