facebook twitter contant share button

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Anant
Forum Commoner
Posts: 66
Joined: Wed Jul 14, 2010 11:46 am

facebook twitter contant share button

Post 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
Post Reply