Hi, I have the below code to that allows my users to access their google contacts and send out invitation mails. It works fine in IE 8 but not in firefox/chrome. in the latter browsers, i keep getting redirected to the "grant access" page even after i click "access granted" instead of denied.
i have set the url in https://accounts.google.com/ManageDomains. i have set the below values: Target URL path prefix: <my website url..like www.company.com>. But the page that requests the contact data/uses the javascript api is www.company.com/invite.jsp. i tried setting that also but its of no use. here is my code: <body onload="initFunc()"> google.load("gdata", "2.x"); google.setOnLoadCallback(initFunc); var contactsService; var scope = 'https://www.google.com/m8/feeds'; function initFunc() { setupContactsService(); if(google.accounts.user.checkLogin(scope)) { getMyContacts(); }else { logMeIn(); } } function setupContactsService() { contactsService = new google.gdata.contacts.ContactsService('exampleCo-exampleApp-1.0'); } function logMeIn() { var token = google.accounts.user.login(scope); } function getMyContacts() { var contactsFeedUri = 'https://www.google.com/m8/feeds/contacts/default/full'; var query = new google.gdata.contacts.ContactQuery(contactsFeedUri); query.setMaxResults(100); contactsService.getContactFeed(query, handleContactsFeed, handleError); } The code is called on body load. regards, Sid -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://code.google.com/apis/contacts/community/forum.html
