added scoring code for Facebook and twitter