1

アプリケーションの Linkedin サインを作成し、Linkedin ボタンを押さずに Linkedin を使用して自動ログインする必要がある場合 (つまり、LinkedIn を使用して自動ログインする必要があります)。ここで、次のコードを試しました。

<script type="text/javascript" src="http://platform.linkedin.com/in.js">
    api_key: key comes here
    onLoad: onLinkedInLoad
    authorize: true
</script>

しかし、私は正しい答えを得ることはありません..

4

1 に答える 1

0

含める必要があります IN.User.authorize();

このような

function onLinkedInLoad() {
                IN.ENV.js.scope = new Array();
                IN.ENV.js.scope[0] = "r_emailaddress";
                IN.ENV.js.scope[1] = "r_contactinfo";  
                IN.User.authorize();
                IN.Event.on(IN, "auth", onLinkedInAuth);
            }
于 2013-02-07T11:41:13.820 に答える