fixed some problems with the facebook framework