Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I allow visitors on my site to share my photos, on their Facebook wall/news feed?

I see that there is a "share" or "like" option from Facebook but that seems to share the whole page.

I would like to have it so that each picture has a small Facebook icon next to it and when they click it, that specific image only is added to their Facebook news feed/wall.

My site is in ASP.NET 3.5 using C#. I can develop in C# so if that is a route to what I am trying to achieve that is fine.

Thank You.

share|improve this question
up vote 3 down vote accepted

This should be what you're looking for. http://developers.facebook.com/docs/share However, do note that that is no longer the recommended way to do it. Soooo...

Use either the OpenGraph or the Like Button. The latter is the easier of the two.



edit- As an addendum if you look at the documentation for share and search for "Creating Your Own Share URL" (bottom of the page) you'll see how to construct the proper url.

http://www.facebook.com/sharer.php?u=<url to share>&t=<title of content>



share|improve this answer
Awesome, that looks like it. Thank you very much. – Greg McNulty Dec 10 '10 at 2:10
No problem glad it was able to work for you. – John P. Neumann Dec 10 '10 at 7:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.