Facebook: User Like / Become a fan of the page

In any facebook api (connect, graph, rest, etc.) there is a way to encourage the user to become a fan of the page (now it is known as sympathy for the page).

+5
source share
3 answers
<iframe frameborder="0" scrolling="no" allowtransparency="true" style="border: medium none; overflow: hidden; width: 150px; height: 20px;" src=" http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.yoursiteurlencodedhere.com&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;height=80"></iframe>

Take a look at the http% 3A% 2F% 2Fwww.yoursiteurlencodedhere.com section .

+1
source

This is not possible through the Facebook API. An iframe solution can work.

0
source

Facebook.

http://developers.facebook.com/docs/reference/plugins/like/

iframe:

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fexample.com%2Fpage%2Fto%2Flike&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>

xfbml:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like show_faces="true" width="450"></fb:like>

Personally, I think the xfbml method is cleaner. Unfortunately, this does not actively request the user, it simply adds a button to your page. There is no way in their api to call someone.

0
source

All Articles