SocialMediaLab R package

SocialMediaLab is an R package that provides a suite of tools for collecting and constructing networks from social media data. It provides easy-to-use functions for collecting data across popular platforms (Facebook, Twitter, and YouTube) and generating different types of networks for analysis.

SocialMediaLab was created by Tim Graham (who is also the maintainer of the package) and Robert Ackland. A major contribution was also made by Chung-hong Chan from the Journalism and Media Studies Centre at the University of Hong Kong.

The package can be found on CRAN  and the development version is available on github.

Note that due to Instagram API changes effective 1 June 2016, SocialMediaLab can no longer provide access to Instagram data.

The present page provides some R scripts to help get you started using SocialMediaLab and also information on associated training workshops and obtaining API access (Facebook, Twitter, YouTube).

General Information

R helper script and tutorials

Absolute Beginner's Guide to the SocialMediaLab Package in R (for version 0.20.1)

Pdf and Rmd versions available

SocialMediaLab Tutorial (for version 0.20.1)

Pdf and Rmd versions available

Topic modeling of tweets in R: a tutorial and methodology

Find tutorial HERE

SocialMediaLab Tutorial for International Communication Association (ICA) 2017 Conference

Pdf and Rmd files

More information

Training workshops using SocialMediaLab

Visit this page containing previous training workshops on network and text analysis involving the use of SocialMediaLab and other R packages.

Obtaining API access (Twitter, Facebook and Youtube)

This page provides some information on how to get API credentials for Twitter, Facebook and Youtube.