Obama rushed to declare the officers involved in the Alton Sterling and Philando Castile shootings as guilty, long before any evidence has come out in either one:
http://time.com/4397070/president-ob...ngs-statement/
He pretty much implies the shootings were caused by racism, despite the fact that very little to no information was out. It's ok if someone like you or me rushes to judgement in these types of situations, even if it's ill advised. The President however has to live up to a certain level of integrity, which he did not do here. So Obama isn't saying "everybody should hate the police" he's merely adding gasoline to the problem and then acts surprised by the explosion that eventually happens.