added ajax handler for CSRF
sorted fb integration