it always says The page you requested is invalid. how can i fetch the contacts with javascript using google contacts api i have valid scope and Client ID
Try using components my friend. Life's gonna be easier and prettier.
http://googlewebcomponents.github.io/google-contacts/components/google-contacts/