move facebook app id to config.php
bug fixes