Page 1 of 1

facebook twitter contant share button

Posted: Fri Mar 25, 2011 9:56 am
by Anant
HI,

I am trying to share article from my site to facebook using facebook connect.

The code i am using so far is -

Code: Select all

<html>
    <head>
      <title>My Great Web page</title>
    </head>
    <body>
       <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.mysite.com"
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:80px"><iframe>
    </body>
 </html>

Ok if i press like - it doesn't add the link to my profile but yeah when i comment then it does.

Is there any good tutorial to do the same in php ? And is it better to use XFBML than iframe ? Why ? Any examples ?

Thanks