updated code to be able to use full facebook sdk