I am using a simple JavaScript popup window to display a Share with LinkedIn dialog, based on the solution in this thread: How to make a custom LinkedIn share button.
https://www.linkedin.com/cws/share?url=http%3A%2F%2Fgoogle.com
I was wondering if there is any way to add a title and description to the query string? I noticed that when you do this with the google example it automatically pulls in this information. Any help is appreciated.
http://www.linkedin.com/shareArticle?mini=true&url=http://example.com/adaptxt-beta-android&title=http://example.com/adaptxt-beta-android&summary=http://example.com/adaptxt-beta-android&source=http://example.com/adaptxt-beta-android
You mean this? LinkedIn share article script.
The only parameter supported by the LinkedIn share url is url, so, try something like this...
https://www.linkedin.com/sharing/share-offsite/?url={url}
Official Microsoft LinkedIn Share API Documentation. Take a look here, you'll see that LinkedIn no longer supports a summary, title, or other parameters. Only url.
They used to support other parameters, though. But they seemed to have changed with Microsoft's acquisition of LinkedIn. Wished someone updated you on that? If you are interested in a regularly maintained GitHub project that keeps track of this so you don't have to, check it out! Social Share URLs
Related
I am looking to get started on how to embed an entire dynamic Instagram feed using HTML and JavaScript (if possible/if necessary) instead of using API's and plugins.
Essentially, what I want on a page for a website that I am currently working on is to show all of the posts as part of a feed on a website and whenever a new post is uploaded on Instagram, that newest post to load automatically.
Does anyone know how to do this or how I can get started on this please?
A little late to reply, but hopefully this is helpful for someone...
Firstly, so we're on the same page, you WILL need to use at least one API to do this-- the Instagram API. You need to use the Instagram API in order to fetch content from their service (this article explains the basic idea https://www.freecodecamp.org/news/what-is-an-api-in-english-please-b880a3214a82/)
Now, you do not say whether you've looked at the Instagram developer docs, but this would be a great place to start: https://developers.facebook.com/docs/instagram
It looks like they have some example code and tutorials, so hopefully there is enough info here to get you started! Based on your question, it sounds like you may want to first check out their BasicDisplayAPI: https://developers.facebook.com/docs/instagram-basic-display-api
Finally, you might find this other SO post helpful. Unfortunately the blog link is broken, but the code snippet looks promising
Embed an instagram feed
This blog article looks promising as well:
https://dev.to/ljcdev/embedding-an-instagram-post-in-your-website-3666
I want to embed a whole list of comments from a Facebook post into web page. I googled around but found that Facebook only supports embedding "single" comment.
For example, I create a post in my Facebook post and my friends comment on the posts. Now I want to embed all my friends' comments into my blog, without the post content.
Is this currently officially supported by Facebook? Or is there any 3rd party library can help to render the comments following Facebook UI style?
Thanks in advance.
Take a look at "Comment Mirroring" with the Comments Plugin in the docs: https://developers.facebook.com/docs/plugins/comments
It may be what you need, but afaik it only works with Pages.
You could also use the graph api to read the comments, but that would only work one way (from the page to your website). Check out the API reference for more information about that: https://developers.facebook.com/docs/graph-api/reference/v2.7/comment/
Edit: Comment Mirroring is deprecated now: https://developers.facebook.com/blog/post/2017/11/07/changes-developer-offerings/
How do I share to an individual on LinkedIn, i.e., send a message to someone on LinkedIn?
http://developer.linkedin.com/documents/tags-and-templates#share
The above link doesn't specify how to pass the LinkedIn id of the user.
The consensus appears to be: There is no way to setup a URL on LinkedIn to share to a particular individual.
If a user wants, they can select to send their message to everyone or to a particular person, but it is up to the user:
Look at the documentation URL you have: this question is so old, that the documentation now 404's and redirects to a blank page. Here's the new documentation: Official Microsoft LinkedIn Share Link API Documentation.
In fact, in 2013, you could use other parameters besides url, like summary and title. Since being acquired by Microsoft, LinkedIn Share API is now strictly limited to only the url parameter.
Seeing as they have been stripping other parameters from the API, I think it is unlikely that they will be adding new ones soon, even a to-user parameter.
When using the Facebook Feed Dialog to give users a way to share a URL, you must supply the app ID of your Facebook app. This app is then referenced when users share your URL, e.g.:
https://developers.facebook.com/docs/reference/dialogs/feed/
When sharing a URL to Twitter via their web intents, you can supply a Twitter account to be mentioned in the tweet, using the via parameter.
https://dev.twitter.com/docs/intents
Is there an equivalent mechanism when sharing on Google+, either via their Share button or Share link? I can’t see one listed in their documentation:
https://developers.google.com/+/web/share/
There is a similar system in place, although it is done through the more advanced Interactive Posts share button. This will create something that resembles a share with your application name on it, the link that is being shared, as well as a "call to action" button that can take a specific action separate from linking to the page. This is more advanced than the +1 or Share buttons, since it does require at least a little bit of developer knowledge and registration of the website/app with Google's developer console.
I have a userscript (read: my Javascript on someone else's site) that allows users to share their IMDb votes with their Facebook friends. I just generate a URL for a Facebook share page with all of the custom information needed for the specific situation, something like "So and so gave the film Forrest Gump a rating of 9/10 on IMDb" with links to a thumbnail and the movie page itself, and allow the user to add their their thoughts on the movie itself.
script with Facebook share dialog http://s3.amazonaws.com/uso_ss/10985/large.png?1284850755
Until recently, I accomplished this by passing all of my parameters to http://www.facebook.com/connect/prompt_feed.php. Yesterday this broke, and it appears that Facebook is deprecating this sharing method in favor of using their Dialog code. (All of the official FB docs now refer to prompt_feed.php as the "old" way of sharing.)
I found a temporary workaround here that just adds a display=touch variable to the prompt_feed query string. This URL is working for the time being (go ahead and click it!), but I fear that it's a loophole that Facebook will close as soon as they realize it's still available, and I'll be stuck without a way to post stuff to FB.
The current methods of posting to Facebook seem to be 1) using the Dialog URL mentioned above and 2) via Javascript using FB.ui Both of these methods appear to require a Facebook App ID, and when I registered a new FB app for this purpose and tried to use it to create a http://www.facebook.com/dialog/feed request, I got an error because my app doesn't "own" the IMDb page that it's linking to. Any ideas about how to accomplish my purposes going forward?
to "own" the imdb page you just need to set the canvas url to the imdb domain.
you can simply use this url:
http://www.facebook.com/sharer.php?u=http://www.your-url-to-share.com
Just modify or change the http://www.your-url-to-share.com part in the above URL with url of the webpage or article that you want to share on the facebook feeds.
If you use the sharer.php and want text plus a link add the &t={text} to the url. For example:
http://www.facebook.com/sharer.php?u=http://www.your-url-to-share.com&t=text-to-share