Edited to make use of Facebook SDK 4.0.