env pattern in config, fix callback error, test facebook app