Opinion dynamics in social networks through mean field games