fixing php error for FB