add possibility to give a facebook appId, followup to #18