kra*_*r65 2 javascript linkedin
我正在尝试在我的(Flask)网站上建立一个LinkedIn登录.为此我遵循我在这里找到的步骤:https://developer.linkedin.com/documents/getting-started-javascript-api
我按照步骤1到4,但从那里我有点卡住了.我目前有以下代码:
<!DOCTYPE html>
<head>
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
api_key: "7762qdzr8qe7db";
</script>
</head>
<body>
<h1>Sign In with LinkedIn</h1>
<script type="in/Login">
Hello, <?js= firstName ?> <?js= lastName ?>.
</script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
据说这应该显示Sign In with LinkedIn按钮,但我绝对没有看到.我在localhost(url存在http://127.0.0.1:5000/linkedin)上运行它,但根据我在顶部链接的同一页面,在开发期间应该不是问题(" 在开发期间,'localhost'工作! ").
在下面的屏幕截图中,您将看到我在上面的js中正确地复制粘贴了API密钥:

即使我使用localhost,下面你会看到我正确地用端口5000列出了我的域名(我也试过没有端口):

我也尝试将这个HTML放在我的TLD上,但也无济于事(加上我猜它也适用于localhost).有谁知道我在这里做错了什么?欢迎所有提示!
[编辑]问题结果是三倍.我需要
http://localhost到linkedin.com/secure/developer上以逗号分隔的JavaScript API域列表http://localhost:5000而不是127.0.0.1:5000api_key: 7762qdzr8qe7db感谢您的帮助!
问题是三重的.你需要
http://localhost到linkedin.com/secure/developer上以逗号分隔的JavaScript API域列表http://localhost:5000而不是127.0.0.1:5000
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
api_key: 7762qdzr8qe7db
</script>
| 归档时间: |
|
| 查看次数: |
2448 次 |
| 最近记录: |