Multi Period Assignment Problem for Social Engagement and Opportunistic IoT