Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这就是我通常在 fbml f-connect 标记中指定重定向 url 的方式
<fb:login-button onlogin='redirect-url'>f-connect</fb:login-button>
如何在以下位置指定“登录时”重定向 URL:
<div class="fb-login-button">f-connect</div>??
<div class="fb-login-button">f-connect</div>
你现在就换一种方式。由于没有任何redirect_uri登录按钮,因此您需要知道事件FB.Event.subscribe才能auth.authResponseChange知道用户已登录:
redirect_uri
FB.Event.subscribe
auth.authResponseChange
FB.Event.subscribe('auth.authResponseChange', function(response) { if (response.status === 'connected') { window.top.location = '//redirect-url.com'; } });