WASHINGTON – Federal officials are planning to collect social media information on all immigrants, including permanent residents and naturalized citizens, a move that has alarmed lawyers and privacy groups worried about how the information will be used.