Custom links in facebook share post - javascript

Is there still a way to add custom links to links footer in facebook share post (e.g. next to "Like - Comment - Share" below the text of text of the post itself)? Some "link" parameter or something, maybe? Or is it deprecated now?
Thanks in advance.

With the current API, I don't see any way to add additional links to a feed posting other than in the content of the message or as the primary link of a feed link share.

Related

What is this technique called in javascript?

After I add a link (facebook.com) on Google plus, it shows me:
I want to do same thing on my page but I don't know what it is (Enter url location -> connect to the page and get some informations (logo, name, title...) -> display).
p/s: Sorry for javascript tag, I'm not sure it can be done with javascript or jquery or something else.
This is basically done with Meta tags of the page you're targeting. Google Plus (and Facebook for example) fetch this metadata from the page you're linking to, parse it and show what they want to show.
It's not an actual iframe or embed.
Take a look at The Open Graph protocol: http://ogp.me/
For example if you look at the DOM of the OGP page you'll find some meta tags like:
<meta property="og:description" content="The Open Graph protocol enables any web page to become a rich object in a social graph.">
Now if you're paste that link (http://ogp.me/) into Facebook, that's exactly what will be displayed there. Google Plus doesn't fetch this description for example, it just takes og:image and og:title.
If you want to know how to grab these information of the specified page you should search for questions about that directly, for example here: How can I retrieve og/meta attributes of a resource?
Hope it helps.

Create a link sharable everywhere

I want to share a specific content of my site by way of a link, and I would that when I share it on Facebook, Twitter, Google+, etc., a certain image, title and description will be shown.
It's so easy when I share my site URL because it's sufficient to modify the related meta tags, but it is not so trivial do it with a specific content you want share with dedicated image, title, description.
I thought, since these information shall be specified in meta tags why not to enclose my content into an iframe which contains a simple html page with all necessary meta tags?
This way when I try to share my link on a social network the content summary will be filled with my meta tags infos.
Have you a smarter solution?
Well, I believe that every social media have different ways to get this information, and some do not even need them (like twitter does not need a picture to a tweet).
And they are always changing how they do it, facebook is an example url parties is being deprecated and they are forcing us to use their api to share / like / whatever.
What you can do is to work with these differences on their own, or get js social plugins to handle it for you.
edit: here are some plugins http://community.paper.li/2012/10/15/top-8-social-media-plugins-for-your-blog-or-website/

Displaying elements in Tumblr posts ONLY on the permalink page

I have a client that would like to put a "back to blog homepage" link on their Tumblr posts. The issue is that using the standard Tumblr framework, that button will appear on permalink posts (where it should be) but also on the index page. Obviously I don't need a link on the homepage pointing TO the homepage. Any ideas on how to specify here? Your help is greatly appreciated!
Link to blog: http://blog.molliestones.com/
If you only want it to appear on Posts (ie, not appear on Pages) then you can use this little tweak to #stevether's answer:
{block:PermalinkPage}{block:Date}
<a />
{/block:Date}{/block:PermalinkPage}
This means if the page being rendered as a date attached to it, which all blog posts do, then it will show. If there is no date attached to it, like all static pages, the link will not show.
{block:permalinkpage}
<a />
{/block:permalinkpage}

Accesing post title and URL from Blogger gadget

I'm trying to build a Blogger gadget for posts sharing using Diaspora!
I've started with Diaspora Sharing Service usinh HTML and JavaScript (you can take a look at my work in progress) and found that URL and TITLE are empty
Neither accessing url using post.url or window.location.href can I obtain a valid value.
Any help will be appreciated.
Maybe you could provide more information? It's not clear to me what exactly you're asking, so it might not be clear to others, too.
As the author of DSS I have to point out that I have some time ago ramped it down. Instead anyone wanting a similar service should use the Diaspora* Advanced Sharer which is based on DSS.
As for the question on how to get it working with Blogger, D*AS has instructions for this;
Blogger blogs
This method will include a Diaspora* share button next to Google +1 button. It is necessary to enable the sharing buttons.
Enter your dashboard and choose your blog.
In section Template, click on Edit HTML. If a warning appears, click Continue.
Check Expand widget templates, press Ctrl+F and write sharebuttons.
Find the line <b:includable id='shareButtons' var='post'>. Just after that, copy the following code:
<a expr:href='"http://sharetodiaspora.github.com/?url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Share on Diaspora'>
<img src='http://joindiaspora.com/favicon.ico' style='width:16px; height:16px; padding:0; border:0; vertical-align:middle;'/>
</a>
Ps. Found this question from my Apache error logs :P

Specifying image, text and title on facebook share without meta og tags

I'm trying to build in a facebook share button on a news section of a site. I would like to specify which picture, title and text to use for the share.
Due to limitations in the cms that the website uses i can't add the open graph meta in the header of the page. I've tried updating the og meta with javascript and just adding them in the body instead to no success.
Is there any other way to specify image, title and text in facebook share using just xslt or client side tech like javascript?
To my knowledge, you can't do this with share buttons. However, you can get similar functionality out of stream.publish.

Categories