Those incidents took place in Indonesia and the Philippines, where social media’s outsize place in politics is widely acknowledged, even as that role is coming under sharper criticism in the United States.