google and facebook api working