3

ユーザーがSpringSecurityFacebookプラグインを介してアプリケーションにログインした後にリダイレクトする方法。Facebookプラグインの成功ハンドラー構成はありますか?

4

1 に答える 1

1

ビューでは次のJSを使用できます。

<facebookAuth:init>
    FB.Event.subscribe('auth.login', function() {
         window.location.href = 'url where to redirect'
    });
</facebookAuth:init>

完全な例については、 https://github.com/splix/s2-facebook-exampleを参照してください

于 2012-10-21T13:10:05.150 に答える