Below is the minimum you need in order to have a web app that provides Facebook authentication. Although there are less than 100 lines of code (including comments), this is a complete Facebook application implemented in +Perl , using the +Mojolicious web framework. It provides Facebook authentication and accesses user's Facebook username. Of course, with proper scope settings it could also access