In order to discern whether an action taken on social network is positive or negative, the scheme uses AlchemyAPI based on Machine Learning algorithms to provide the social sentiment of a text. In addition, the proposal only takes into account the latest 100 actions of interactions between users on social networks. Thus, each TRij value is computed dynamically for each pair of users i and j as it depends on the degree of friendship between the pair of users and their last interactions in social networks.