Almost every site you see these days has a little button on it with an "f" icon that links to Facebook in some way. I simply want to know which is the best way to implement this button. I have already done this on a couple of sites, but I've no idea if I've done it right, or which of the two methods is more effective.
On my first site, I have created a button with a Facebook icon, placed it on the page, and added a hyperlink that looks something like this:
<a href="http://www.facebook.com/sharer.php?u=www.MyPageRUL&title=My Page Title'">
I don't remember where that code came from. I must have found it on some site somewhere.
On my second site, I used a tool for generating a Facebook link that I found at http://developers.fa...e/plugins/like/
In this case, the code looks like this:
<iframe src="//www.facebook.com/plugins/like.php?href=MyPageURL&send=false & ... various other parameters go here></iframe>'
When the page is rendered you see a small button with the Facebook icon, and the word Like next to it.
So, which of these two methods is better? (That is, which is more convenient from the point of view of a site visitor / Facebook member?) Or do they both lead to exactly the same result? Or is the whole thing a waste of time?
Thanks in advance.