2012-12-04 52 views
5

我在我的頁面上添加了google javascript客戶端庫。我也安裝了Facebook的JavaScript SDK。當我啓動Google身份驗證時,它的身份驗證很好,但是當它回撥時,我在Chrome中出現相同的原始錯誤。看起來好像它正試圖回撥到Facebook助手框架而不是Google助手框架。Facebook SDK + Google SDK:正在訪問的框架將'document.domain'設置爲'facebook.com'

gapi.auth.authorize({client_id: GlobalSettings.google_client_id, scope: scopes, immediate: false, authuser:-1}, this._validateGoogle); 

不安全JavaScript嘗試與URL http://static.ak.facebook.com/connect/xd_arbiter.php?version=17#channel=f141ef255c&origin=http%3A%2F%2Fpicolocal.com&channel_path=%2Fassets%2Fchannel.html%3Ffb_xd_fragment%23xd_sig%3Df356553d18%26從幀幀訪問使用URL https://accounts.google.com/o/oauth2/auth?zt=ChR3VkFzQjdTLVM1M214bmQybTlURRIfc2pVUmM4YXkwc0lVdUpKVm5MNDlDYzlxUVliSGRnSQ%E2%88%99APsBz4gAAAAAUL1kGm5n1rNtBr7JzWO79BsCrWR3JQ0F&from_login=0&hl=en&as=fc48d65d9e4aad8&pli=1&authuser=0。請求訪問的幀具有'https'協議,被訪問的幀具有'http'協議。協議必須匹配。

不安全的JavaScript嘗試訪問來自框架的URL爲http://static.ak.facebook.com/connect/xd_arbiter.php?version=17#channel=f2a52e49dc&origin=http%3A%2F%2Fpicolocal.com&channel_path=%2Fassets%2Fchannel.html%3Ffb_xd_fragment%23xd_sig%3Df2ce0c29cc%26的框架,URL爲https://accounts.google.com/o/oauth2/auth?zt=ChRHWUYwOTVFck5wQUZGM1dfMFI2chIfUWhFRmJaWFlJdzBadUpKVm5MNDlDYzlnc1dISGRnSQ%E2%88%99APsBz4gAAAAAUL1fbOLmx90l39zNA-9tUFG8ghM-l8qG&from_login=0&hl=en&as=78294d299ef41f66&pli=1&authuser=1。請求訪問的幀具有'https'協議,被訪問的幀具有'http'協議。協議必須匹配。

回答