1

Topic: help with facebook like

i added facebook like to members profiles but the problem is that is links to my main page can anyone tell me how to make it work for each individual page

Example: now its linked freshmetropolis.com
              i want it to link to freshmetropolis.com what ever page im on

              if im a members page it would link to the members page

I hope i explained this right

Thank you

---------------------------------------------------
http://www.freshmetropolis.com

2

Re: help with facebook like

OK so maybe i didn't explain it right
so lets try again this is the code i added to my site

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.freshmetropolis.com" layout="button_count" show_faces="false" width="100" action="recommend" font="arial"></fb:like>

now instead of it liking freshmetropolis.com
i want it to go the members page its displaying
so if the page im on is http://www.freshmetropolis.com/mzoldan it would like that page
if im at /some other member/  it would go to that page.

Thank you

3

Re: help with facebook like

I think it works, when you remove the url tag from your link, because this defines it all. The FB wizard says it also as I remember

4

Re: help with facebook like

Add this code to the very bottom of member_section_location.tpl

<li class="action"><script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.YOURDOMAIN.com<?=$_SERVER['REQUEST_URI']?>" layout="button_count" show_faces="false" width="100" action="recommend" font="arial"></fb:like></li>

and edit the domain part to suit your domain.

If you would prefer "like" instead of "recommend", change it so that action="recommend" becomes action="like"

You can add the identical code to other member_section_xxxx.tpl so that the button shows up in say blogs or events. You're going to have to play around.

5

Re: help with facebook like

There is one problem with inserting this code. When posting your like or share on Facebook, it picks a wrong picture to go with the news on Facebook. In my test where i clicked like to a girls profile picture, is shows a male picture on Facebook. The same picture is shown, when i like on blogs and other places in my site

6

Re: help with facebook like

try reading more about the meta properties for facebook for the images.

 <meta property="og:image" content="{top.virtual_pic_path}{member_media_path}{member_picture}"/>

something like that u must add in the header.tpl file, so that the image theat fb uses is the images setup in that property

7

Re: help with facebook like

misulicus wrote:

try reading more about the meta properties for facebook for the images.

 <meta property="og:image" content="{top.virtual_pic_path}{member_media_path}{member_picture}"/>

something like that u must add in the header.tpl file, so that the image theat fb uses is the images setup in that property

I'm struggling with this too. Even though I put the meta tags in header.tpl it still shows the wrong picture. I set the meta tag to the URL for my site logo, but FB shows a member's profile picture instead.

---
http://www.UncleRandysPlace.com   **adult site**