PDA

View Full Version : facebook "like" help with Vb code


Xencored
05-14-2010, 04:26 PM
Hey all am trying to add a Facebook like button to my Albums page
like this
117099

This is the code so far but the {vb:raw session.sessionurl} will not link the URL for the image

<iframe src="http://www.facebook.com/plugins/like.php?href=http%253A%252F%252Fwww.myanimeisland .com%252Falbum.php&amp{vb:raw session.sessionurl};layout=standard&amp;show_faces=tru e&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;hei ght=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>

Anyone any ideas on why its not working?

It does link but only
http://www.myanimeisland.com/album.php
Not say http://www.myanimeisland.com/album.php?albumid=3&attachmentid=62

Anyway Thanks

yeppuda
08-05-2012, 11:31 AM
Yes, I'm wondering.

Budabing
08-06-2012, 02:23 AM
I always thought that to have a facebook like button, you also had to have a facebook api & secret code from the www.facebook.com/developers page?
Have you tried installing the more share options add-on? (https://vborg.vbsupport.ru/showthread.php?t=266159&highlight=more+share) from BirdOPrey5?

ChiNa
08-06-2012, 02:43 AM
This Thread is very old, I am sure he have figured it out!

Are you using VBSEO, ? That can cause problems too and uses another method for a LIKE Button,
Here is an example for VBSEO forums:

<iframe src="http://www.facebook.com/plugins/like.php?href=http://(DOMAIN)$_SERVER[VBSEO_URI]?p=$post[postid]&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;actio n=like&amp;colorscheme=l ight"
scrolling="no" frameborder="0" allowTransparency="true" title="hihi" style="border:none; overflow:hidden; width:100px; height:20px"></iframe>

I will write back, ONLY if i found anything else!

Else goodluck