0
我使用FB.ui與應用Facebook標籤授權使用簡單:的OAuth 2.0餅乾不是頁面選項卡上設置有FB.ui
FB.init({
appId : '<%= Facebook::APP_ID %>',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML
channelUrl : 'http://<%= request.host_with_port %>/channel.html', // Custom Channel URL
oauth : true //enables OAuth 2.0
});
FB.ui({
method: 'oauth'
},
function(response) {
// do some redirect stuff here
});
授權去罰款,但即使當用戶確認的應用,相關的fbsr_xxxxx cookie未設置。有什麼辦法強制它?響應對象包含user_id,但我寧願使用帶有signed_request的標準流。