Facebook php sdk 4 getSessionFromRedirect() always null

Solved: I entered the code outside of the ajax call, in function my_footer() {

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)