Add Facebook SDK and ported some features from Scala app.