I developed a Facebook application using PHP, HTML and MySQL database with my friend Benjamin Nuñes in 2010. I lost the source code, but I created a video that could be useful. I am not sure if this is the way you are supposed to create Facebook Apps nowadays. I think it may be useful to see how we envisioned the soccer quiz and how we organized the tables in MySQL. Also, we added Google Adds in Facebook.