how to implement facebook like button on my website for each photo on my page? - asp.net

I have a page that have 5 to 10 photos of a person, If some user comes into this page he should see facebook "Like" button next to each photo on that page. Please tell me the best to do it?
I have installed Javascript SDk on my site, I can use XFBML also. Just post me some sample code if you have any?
Thanks

Why not do what the manual says ?
http://developers.facebook.com/docs/reference/plugins/like

Related

Facebook and Linkedin Share buttons

I have put up facebook and Linkedin share buttons on a page in my website. I have set the fb opengraph tags for that page. I have also set up the meta tags with description i want to share on FB and Linkedin, but when i share the content on facebook i get a wrong url and description shared. Please have a look and give me any ideas where i am wrong.
This is the page
I checked my URL and OG tags in facebook debugger here and it pointed out i had a type error and also a description tag was missing, which is essential. Fixing these, made everything perfect.
For those who want to test their page against both Facebook and LinkedIn...
Facebook Page Debugger
LinkedIn Post Inspector

facebook "like box" for page

I set up my website's facebook account as a Page on my facebook account (this was probably incorrect, but I didn't know better at the time). I have switched my account to Use Facebook as a Page. I am trying to create a like box with avatars for my website (www.zealforadeal.com). I get the error code: To access this page, you'll need to switch from using Facebook as your page to using Facebook as yourself. How can I create a Like Box for my page (http://www.facebook.com/zealforadeal) ?
(I never use my facebook account for anything other than the Page)
I think you are confused about the purpose of the 'Like box'. The 'like box' shows the people who have 'Liked' your Facebook page,and your Facebook page status updates.https://developers.facebook.com/docs/reference/plugins/like-box/
Just go to the like box page and paste your url (http://www.facebook.com/zealforadeal) into Facebook Page URL field.

How to add facebook and twitter links in asp.net?

I've a task in which i need to add Face book LIKE, Comment etc buttons or links in my application.
and also i need to add twitter link.
Please help me with the asp.net code.
Thank u.
Document provides links for Facebook Social Plugins such as (Like Button, Send button, Comments, Like Box.etc).
Document for the Tweet button, Follow button and how can you embed them on your website with just one line of code.

Facebook & Twitter share buttons in asp.net

My asp.net web page shows a list of Youtube videos. I want to show "Share on Facebook" and "Share on Twitter" links with each video icon.
How can I implement it?
You can achieve that by using Add This.
Document provides links for Facebook Social Plugins such as (Like Button,Send button,Comments,Like Box.etc.) and how to integrate into your site with just line of HTML code.
Document for the Tweet button, Follow button and how can you embed them on your website with just one line of code.
You can check this one for facebook share button, twitter share button, linkedin share button with callback function just pass your link and share:
Social share buttons facebook,twitter,linkedin in asp.net
Add This is good option otherwise if you wants to add just Twitter only then below code will help you out.
Add Tweet To Asp.NET Website

addthis api? Is it possible to bookmark another URL?

At the moment, I try to include addthis social-bookmarks to my site.
My problem is, that I have to bookmark another link than the url on my site.
Instead of www.example.com, I have to bookmark www.example.com?media=my-media-file.
From the beginning:
A User comes to my site. On my site are several movies. He can click on a movie thumbnail and watch the movie without reloading the site (javascript). Now he can click on my social bookmark icon to share this movie.
Now the addthis framework thinks that the User want's to share www.example.com (cause this is whats in my url). But I want the user to share www.example.com?media=foo-bar .
Opening www.example.com?media=foo-bar for the correct movie is still working, but no social bookmaring.
I hope you understand my problem and can help me. I searched without success in the addthis api.
So, can u help me?
Okay, I found it:
$('.addthis_button').attr('addthis:url',shareURL);
$('.addthis_button').attr('addthis:title',shareTitle);
$('.addthis_button').attr('addthis:description',shareTitle);

Resources