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的标准流。