This is my old code, need to upgrade with the new api of Facebook