Abstract1 Introduction2 Definitions and History of Online Social Networks3 Are Online Social Networks All the Same? Features and Metrics4 Psychological and Motivational Factors for People to Share Opinions and to Express Themselves on Social Networks5 From Sociology Principles to Social Networks Analytics6 How Can Social Network Analytics Improve Sentiment Analysis on Online Social Networks?7 Conclusion and Future Directions