Use pure js to do FB connection