jquery-oembed-all icon indicating copy to clipboard operation
jquery-oembed-all copied to clipboard

LinkedIn Friendly Profile Names

Open adamtoth opened this issue 12 years ago • 0 comments

I had to make a change to support friendly linkedin profile names, so I added another provider. Also, I added "lnkd.in" to the tiny url array. I'm sure you can find a better way to do this, but here is what worked for me:

new $.fn.oembed.OEmbedProvider("linkedin", "rich", ["linkedin.com/pub/.+"], "https://www.linkedin.com/cws/member/public_profile?public_profile_url=$1&format=inline&isFramed=true",
  { templateRegex: /(.*)/, embedtag: { tag: 'iframe', width: '368px', height: 'auto' }
  }),
new $.fn.oembed.OEmbedProvider("linkedin2", "rich", ["linkedin.com/in/.+"], "https://www.linkedin.com/cws/member/public_profile?public_profile_url=$1&format=inline&isFramed=true",
  { templateRegex: /(.*)/, embedtag: { tag: 'iframe', width: '368px', height: 'auto' }
  }),

adamtoth avatar Nov 20 '12 17:11 adamtoth