javascript - Is it possible to use a Facebook like button from an iframe? -


i have 2 websites in 2 different folders of same server.

the first website used homepage, second used iframe object of first.

from homepage possible use facebook button of iframe object display domain of first instead?

you can url want in place. have specify data-href attribute url u want.

after including javascript sdk can use bellow sample code. replace <your_url> url u want use.

sample code:

<div class="fb-like" data-href="<your_url>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div> 

you can generate code going faccebook's like button web page.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -