Hello,

I want to use Facebook like button on my dating sites (at the footer).

How do I use it? On my facbook individual account or whole site.

Currently, I have this code at the footer:
<script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like href="http://www.mydomain.com/" layout="standard" show_faces="false" action="like" font="arial"></fb:like>
I have 10 likes on the homepage total now.

I also have a FB account address as: facebook.com/mydomainname

Which method should I use?
Should I leave the way it is now or make a link to my individual page (facebook.com/mydomainname) on the footer?

Thanks.

Dani AI

Generated

Recommended approach (short): treat the site as a brand and use a Facebook Page (not a personal profile) for the dating site. A Page is the right object to build followers; the Page Plugin or a simple link to facebook.com/mydomainname in the footer will create a stable destination for fans. The old “Like” widget that targets a URL creates a share-like record for that page, but Meta recently announced that external Like/Comment plugins will be retired, so relying on the external Like button long-term is risky. (facebook.com)

Implementation options (compact, safe for a footer):

  • Link to the Facebook Page (works everywhere, no SDK).
  • Use a small Page Plugin in the footer to let visitors like/follow the Page without leaving the site.
  • If the goal is sharing a specific page, use a share dialog/link instead of the legacy Like widget.

Example code (replace the URLs with the site/Page values):

Simple footer link

<a href="https://www.facebook.com/mydomainname" target="_blank" rel="noopener">Follow on Facebook</a>

Simple share popup (no SDK)

<a href="#" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent('https://www.mydomain.com'),'fbshare','width=640,height=480'); return false;">
  Share on Facebook
</a>

Compact Page Plugin (load the SDK once; use a small header for footers)

<div id="fb-root"></div>
<script>
  (function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];
  if(d.getElementById(id))return; js=d.createElement(s); js.id=id;
  js.src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=vX.Y";
  fjs.parentNode.insertBefore(js,fjs);
  }(document,'script','facebook-jssdk'));
</script>

<div class="fb-page" data-href="https://www.facebook.com/mydomainname"
     data-hide-cover="true" data-show-facepile="false"
     data-adapt-container-width="true" data-small-header="true"></div>

(Examples and attribute meanings are documented in plugin references.) (wpembedfb.com)

Practical notes and cautions: load the Facebook SDK only once on the site; use HTTPS for all links and OG images; control how shared previews look with Open Graph meta tags and verify them with Facebook’s Sharing Debugger; for dating or other mature-content verticals make sure age-based restrictions and platform rules are followed (Pages are the correct account type for businesses, not personal profiles). Replies like and describe clicking Like on Facebook itself but don’t address which embed/link is right for a site. For policy and implementation details see Facebook Pages/Platform guidance and current plugin docs. (help.surmado.com)

Recommended Answers

All 6 Replies

I think this may help:
Click Here
or this:

But you can always google your question :)

It's very simple go to facebook home and you like avery pic.........

I just use to collect likes from differnet difffernet profiles i dont able to catch your words what do you trying to do.Please be some more specific in your question.

According to me you can use like button by just simple a click on like text.........

I think you want to use like button for sharing.specify your question.

you guys, i think he wants to display the like button on his site.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.