会员简介插件 [英] LinkedIn Member Profile Plugin

查看:128
本文介绍了会员简介插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  http://developer.linkedin.com/但是,每次我将生成的代码粘贴到我的HTML中时,插件/成员 - 配置文件插件生成器


$ b文件,没有什么似乎出现了。原谅我的无知,如果我缺少的东西,我是相当新的HTML和CSS。在做了一些搜索后,我看到了很多关于他们的API的讨论。我需要一个API密钥才能工作?



这里是我试图使用的代码示例:

 < script src =// platform.linkedin.com/in.jstype =text / javascript>< / script& 
< script type =IN / MemberProfiledata-id =(Profile URL)data-format =inline>< / script&感谢您的帮助。

解决方案

这绝对与通过 file:// C:\ ... \mypage.html 而不是在 http://myserver.com/mypage.html 的服务器上托管它。



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



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


I'm attempting to use LinkedIn's Membership Profile Plugin found here:

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

However, every time I paste the code generated into my HTML document, nothing seems so show up. Forgive my ignorance if I'm missing something, I'm fairly new to HTML and CSS. After doing some searching I've seen a lot of talk about their API. Do I need an API key to get this to work? Or am I just missing something in my code?

Here is an example of the code I'm attempting to use:

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

Thanks for any help.

解决方案

It definitely has to do with the fact that you are accessing it through file://C:\ ... \mypage.html instead of hosting it on a server like http://myserver.com/mypage.html.

You can see the error in Chrome if you press F12 for Developer Tools, under Console. It is hard to find the original reason, because all of it is run in those scripts.

But the scripts work, and you can see it running if you just paste it in somewhere like W3Schools TryIt page

这篇关于会员简介插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆