我想升級我們的應用程序以使用最新的OAuth 2.0 Javascript代碼。在我的應用程序設置下的「遷移」,我已經啓用了一切。 (OAuth遷移,升級到請求2.0等)Facebook OAuth 2.0 Javascript SDK authResponse
用以下命令調用FB.init之後:oauth:true。
然後調用FB.getLoginStatus(和FB.login一樣)並檢查我的響應對象我有一個response.session,但沒有response.authResponse?任何人都知道我可能錯過的任何設置,或者什麼會導致oauth FB調用不會像文檔狀態那樣返回authResponse?
response.status is there,but not response.authResponse。
真正簡單的代碼: 我fb.init參數: APPID:對API密鑰 channelUrl API_KEY,//變量:channel_path,//變量通道路徑 狀態:真, 餅乾:真實, XFBML: true, aouth:true FB.getLoginStatus(function(response){alert(response.authResponse);}); – BruceBannor
如何編輯您的問題並在其中添加正確格式的代碼? – ifaour
你的問題只是拼寫錯誤的參數「oauth」 –