Purpose Social media marketing (SMM) denotes attaining website traffic or attention through social media platforms. The paper aims to focus on examining the viewpoint of library professionals from different universities along with the user respondents from different disciplines and universities on the role of social media tools to market university libraries. Design/methodology/approach It is a survey-based study that used the questionnaire as its chief data collection instrument designed to be administered to library professionals (n = 100) and users (n = 1,189) from eight universities. The study also adopted the general observation and interview methods to supplement the data. The data was analyzed using SPSS software, and Chi-square test and ANOVA were applied to ascertain the significant variations in viewpoints of the library professionals and the users. Findings The research study showed that library professionals (from different universities) and users (from different disciplines and universities) felt that social media could be an appropriate marketing tool for libraries in the future. Observations during data collection highlighted a lack of confidence and unwillingness among library professionals to implement any changes in the present time. Practical implications The present study provides some significant insights for improving the current situation of the libraries under study in terms of increasing awareness among the students and adopt social media tools for marketing of library facilities and services in future. It is important to note that a few issues that came into light during data collection were a marked lack of willingness and prevalence of less confidence among the library professionals to execute or implement the social media tools to market library resources and services among the users. Originality/value SMM programs focus on creating content that attracts attention and encourages readers to use it. This study attempts to fill the gap in of marketing in libraries through social media. The paper offers insights into the use of marketing tools for promoting library resources and services as per the needs of library users. The research work differs from other studies undertaken on library marketing related to social media as it has included both library professionals and users together to obtain a better picture in this regard.