A message passing algorithm for the evaluation of social influence