Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7066445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:04:59+00:00 2026-05-28T05:04:59+00:00

I have a site where a user submit a quote, each quote is added

  • 0

I have a site where a user submit a quote, each quote is added in a list and has its own page once created. The URL for each quote looks like: http://example.com/quote-231

My Client wants each quote to have its own like button that is displayed on the main page and the quote page itself. Each quote has it’s own id.

I’ve tried to read developer.facebook.com and I can’t really understand how I would implement the like button for each page, can someone explain what I need to do/find out/read to get this working for me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:05:00+00:00Added an answer on May 28, 2026 at 5:05 am

    I’ve coded this in ColdFusion, but it should be very easy for you to adapt for PHP. This allows you to customise the thumbnail and description for the “like” button’s data and display.

    Inside the head tag:

    <meta property="og:title" content="Make Model"/>
    <meta property="og:type" content="product"/>
    <meta property="og:url" content="somedetailpage.php/id/#youruniqueid#"/>
    <meta property="og:image" content="#thumbnailimageurl#"/>
    <meta property="og:site_name" content="#sitename#"/>
    <meta property="fb:admins" content="#facebookadminuserid#"/>
    <meta property="og:description" content="#somedetailpageshortdescription#"/>
    

    Inside the body tag:

    <fb:like href="somedetailpage.php/id/#youruniqueid#" layout="button_count" show-faces="false" width="90" height="20" />
    

    Inside the body tag (at the end in the footer):

    <div id="fb-root"></div>
    <script>
      window.fbAsyncInit = function() {
    FB.init({appId: 'your app id', status: true, cookie: true,
             xfbml: true});
      };
      (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
     }());
    </script>
    

    Check out the Facebook docs for the different og:type options.

    Hope that helps?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php site where a user has the ability to login. Once
Let's say that I have a site where once the user selects a few
I have created a site collection inside a web application with user A as
I have a page where a user can import data to the site. either
I currently have a site with multiple articles being user-generated as content. On each
I have an ASP MVC 3 site that allows a user to submit some
I have a site with the following robots.txt in the root: User-agent: * Disabled:
I have 2 site: example.com and exampletwo.com I want that when a user login
I have a site with an image uploader, and whenever a user tries to
I have a django server that serves the basic site with user, auth etc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.