Code to share stuff on Facebook

Just got an email about this, so lets share it with everyone. If you want to create link to share an image, webpage, video, or other link on your Facebook profile, here’s the magic code…

Just put that in front of whatever you want to share. So for example, if you want to show people this website… … then the full link is…

The cool part is that Facebook generates thumbnail previews based on the content on that link. So if you were to click that link, then sign in, you’d see this next… 

How to submit content to FacebookNotice its giving me a choice of 16 thumbnails to pick out as the preview. And it grabbed the most recent text on the blog as a preview. 

And since I’m sure most of you aren’t that keen on spamming your friends about the CartoonSmart blog, here’s something very cool, very worth showing off…


25 thoughts on “Code to share stuff on Facebook

  1. Tylor says:

    That’s a good code to keep on hand. Thanks!

    P.S. I love the new blog design! It looks like a “real” blog now!

  2. Hi,

    I just tried the share button and I see the thumbnail is not passing through to Facebook. Why?

    I am having the same problem, when i use my share button for a flash video, I see the link but not the thumbnail.

    Any comment?

  3. Gagan Shrestha says:

    i actually included the meta tags in my index pageas follows have i done anything wrong…

    0785209905.jpg is the image whose thumb nail i want to show…

  4. I don’t know, thats Facebook’s whole deal. I don’t think you’re doing anything wrong though. If they are auto-generating the thumbnail (or not) is something on Facebook’s end. As far as I know.

  5. Saka92 says:

    how can i make this links ‘original’………….i mean to write under them my name so everyone can see that I invented that link………
    ex : by Saka92

  6. How do I put the code in once on my single.php page and have it automatically read the page which it appears on?

    Meaning How do I put this code in once but have it work for every other page individually when I hit share on my wordpress site?

  7. iv4eto_k says:

    Ok this works fine, but i need an action script for a button that will directly post a text to facebook, no links or pics but text…can this be done and if yes – how? Please help.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s