LinkedIn会员档案插件

时间:2013-05-24 17:29:56

标签: html css linkedin

我尝试使用此处的LinkedIn会员资料插件:

http://developer.linkedin.com/plugins/member-profile-plugin-generator

但是,每次我将生成的代码粘贴到我的HTML文档中时,似乎都没有显示出来。如果我错过了什么,请原谅我的无知,我对HTML和CSS相当新。在做了一些搜索之后,我已经看到很多关于他们的API的讨论。我是否需要API密钥才能使其正常工作?或者我在代码中遗漏了什么?

以下是我尝试使用的代码示例:

<script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="(Profile URL)" data-format="inline"></script>

感谢您的帮助。

2 个答案:

答案 0 :(得分:2)

这肯定与您通过file://C:\ ... \mypage.html访问它而不是在http://myserver.com/mypage.html等服务器上托管它的事实有关。

如果您在控制台下按开发者工具的F12,则可以在Chrome中看到错误。很难找到原因,因为所有这些都是在这些脚本中运行的。

但是脚本可以正常工作,如果您只是将其粘贴到W3Schools TryIt page

之类的地方,就可以看到它正在运行

答案 1 :(得分:0)

尝试使用“linkedin short url”。例如:“https://www.linkedin.com/in/xy”:

您可以在修改公开个人资料时自定义公开个人资料网址。自定义公开个人资料网址按先到先得的原则提供。

1.Move your cursor over Profile at the top of your homepage and select Edit Profile.
2.Click the URL link under your profile photo. It will be an address like www.linkedin.com/in/yourname
3.Under the Your public profile URL section on the right, click the Edit icon next to your URL.
4.Type the last part of your new custom URL in the text box.
5.Click Save.