Share this post link for Facebook
-
I’m using the Reply Me plug to add one-click options to Del.ic.ious, Twitter, etc etc. However, the Facebook link on this is (perhaps intrinsically) not able to behave in what would be a very effective way. To explain: providing the blog is registered at Networked Blogs, then there are some cool options from within Networked Blogs to post nice summaries of individual blog postings to Facebook, by anyone who is logged in to their own Facebook account.
I have found that by taking the URL of the Networked Blogs link for the blog posting, and then using this code (example from a recent posting of mine):
<small> <img src="https://static.networkedblogs.com/static/images/facebook.gif" style="float:left;margin-top:-0.5em;"><a onclick="w=window.open(this.href,'facebook','width=800,height=500,resizable,left=0,top=0'); w.focus(); return false;"href="https://networkedblogs.com/p23625455" title=" Click on 'Share it' button within popup at top of screen ">Share this on your Facebook page</a></small>
I can get a more useful option that people might use if they wish to add the posting to their Facebook page. The Networked Blogs page opens wtih a ‘share it’ button that people can use.
However, my questions are:
1) Is it intrinsically impossible to have a Facebook plugin that would automatically be able to find the related Networked Blogs id for the posting, and then create a one-click button within the blog posting?2) If that is the case, then is it possible to create your own manual code, with javascript, within a WordPress posting, so that a one-click button is placed within the post rather than the two-stage process described above, going via a popup window.
I tried scooping up some of the Networked Blogs code to make my own ‘share it’ link within the blog posting, but it didn’t work. I don’t know if this because you cannot paste javascript within an actual blog posting, or because I didn’t do it right. This is what I copied over from Networked Blogs, and put in my blog posting:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> var postAttachment = {"name":"Compelling question-asking stories","href":"http:\/\/networkedblogs.com\/p23625455","caption":"","description":"First, here\u2019s Alma, a prize-winning animation by Rodrigo Blaas that is hugely compelling. And chilling. A visual metaphor of entrapment. A real discussion starter \u2013 it would be useful to ...","comments_xid":"post23625455","media":[{"type":"image","src":"http:\/\/img.bitpixels.com\/getthumbnail?code=78793&size=120&url=http:\/\/www.internetevangelismday.com\/blog","href":"http:\/\/networkedblogs.com\/p23625455"}],"properties":{"link":{"text":"Full Article...","href":"http:\/\/networkedblogs.com\/p23625455"}}}; var postActionLinks = [{"text":"Share","href":"http:\/\/networkedblogs.com\/p23625455?a=share"}]; function trackEvent(category, action, label, value) { var prefix = 'Experiment 2A: '; try { pageTracker._trackEvent(prefix + category, action, label, value); } catch (err) {} } </script> <a href onclick='sharePost();return false;'>Share it </a>
Thanks for any ideas on this. It would certainly be a useful feature for any WordPress blogger, because Facebook is the most likely place that anyone would consider adding a link to a blog posting they liked.
Best wishes and thanks
Tony
- The topic ‘Share this post link for Facebook’ is closed to new replies.