Night Train
Night Train

Reputation: 781

LinkedIn Member Profile Plugin

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.

Upvotes: 3

Views: 5767

Answers (2)

draguz
draguz

Reputation: 1

Try with your "linkedin short url". For Example: "https://www.linkedin.com/in/xy":

You can customize your public profile URL when you edit your public profile. Custom public profile URLs are available on a first come, first served basis.

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.

Upvotes: 0

JOG
JOG

Reputation: 5640

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

Upvotes: 2

Related Questions