问题
We have created a SharePoint 2010 web part where we display our company feed from https://www.linkedin.com/company/"Name of Company"/
.
End-users need to login the first time (that is ok). But even though they login using their personal LinkedIn profile, they cannot see our company-feed. Why is that?
If the users are set as LinkedIn Designated Admins they can see the feed, otherwise they cannot.
We are using
<script type="text/javascript" src="//platform.linkedin.com/in.js">
api_key: "The key"
lang: da_DK
authorize: true
onLoad: onLinkedInLoad
</script>
I hope someone can share their knowledge.
回答1:
Some light on this issue over here:
As ahmeij said, Linkedin doesnt provide anymore an easy way of embedding your company/personal profile timeline anywhere. However, there is an alternative way of implementing this.
You will make use of the RSS feed of the profile. The url will be something like this:
https://www.linkedin.com/biz/[PROFILE ID]/feed?start=0&v2=true
You can find out the numeric ID in you profile/company page.
Read the full source here: https://www.glintech.com/blog/confluence-embed-linkedin-company-feed.html
回答2:
This is why :'( https://developer.linkedin.com/blog/posts/2015/developer-program-changes
Starting on May 12, 2015, we will be limiting the open APIs to only support the following uses:
Allowing members to represent their professional identity via their LinkedIn profile using our Profile API.
Enabling members to post certifications directly to their LinkedIn profile with our Add to Profile tools.
Enabling members to share professional content to their LinkedIn network from across the Web leveraging our Share API.
Enabling companies to share professional content to LinkedIn with our Company API.
Only people who can admin the feed can read/update to the company feed. All others are excluded unless you manage to get yourself promoted to LinkedIN partner: https://developer.linkedin.com/partner-programs
回答3:
I found the way to implement a CORS proxy, and got this working. I used this simple PHP CORS proxy
However, LinkedIn site doesn't return any information from this URL anymore, it just returns a [301 - moved permanently] error :_(
回答4:
As Alberto mentioned in the post below a RSS feed can be used to create an embed code. To enable RSS on your LinkedIn and get the RSS link you can follow this guide. Then you can use this plugin to generate an embed code of the feed.
来源:https://stackoverflow.com/questions/31176746/embedding-linkedin-company-updates-feeds