Facebook PHP API

Facebook’s PHP API for use in Spotigraph
Index file of Spotigraph

Mainly Javascript, basic formatting, calls to buildDatabase,
formatGraphData, lastSong, and topArtists php files.
Builds a mySQL database

Builds a mySQL database containing a user’s songs’ playID, publishTime,
songID, songName, artistName, albumName, albumURL, and songURL.
Gets the user's last played song

Gets the user's last played song from the graphdata table.
A loading gif

A loading gif displayed during AJAX calls.
Creates a graphdata table

Creates a graphdata table consisting of artists and number of plays per
day. The last column is a total for each artist over the time period.
Gets a user's Top Artists Listened to

Gets a a set number of the user’s top artists depending on how many
total artists the user has listened to.