A 28-year Elgin police officer was put on administrative leave after posting a message about immigration enforcement in Elgin on his personal Facebook page, Police Chief Ana Lalley said Thursday.