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

  • SEARCH
  • Home
  • 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 8832127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:27:39+00:00 2026-06-14T08:27:39+00:00

I’m extremely frustrated with this right now, and everything I read is outdated (I’ve

  • 0

I’m extremely frustrated with this right now, and everything I read is outdated (I’ve been googling for what feels like days).

All I’m trying to do is make a like button to a specific facebook page url (not a website url).

Obviously the number of likes on the facebook page should show up in the facebook like button (not like box).

I also want to use the ‘share’ button on the facebook like widget.

First of all, when I put the facebook page url in it says 0 likes, and that’s the first problem (there are many likes).

Second, No matter what URL I try… it likes and immediately unlikes the page. Ive tried debugging and removing the facebook page url altogether, and trying just a standard URL instead.. it does the same thing.

I have installed tons of these in the past and now they are all being extremely buggy – WTF is facebook doing that I don’t know about which could cause this to do this?

PS: I’m trying to also make this as simple as possible… I don’t need all kinds of crazy features and app integration and garbage. I just want a like button to a page.

<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 = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>  

html:

<div class="fb-like" data-href="http://example.com" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true"></div> 
  • 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-06-14T08:27:40+00:00Added an answer on June 14, 2026 at 8:27 am

    Get the codes for the like button from here : https://developers.facebook.com/docs/reference/plugins/like/

    What happened to the old Share button?

    We deprecated the Share Button when we launched the Like button,
    because the Like button improves clickthrough rates by allowing users
    to connect with one click, and by allowing them to see which of their
    friends have already connected.

    Work around is, using a button to initiate a post request which automatically shares your user’s feed via Graph API

    https://graph.facebook.com/brent/feed?
      link=https://developers.facebook.com/docs/reference/dialogs/&
      picture=http://fbrell.com/f8.jpg&
      name=Facebook%20Dialogs&
      caption=Reference%20Documentation&
      description=Using%20Dialogs%20to%20interact%20with%20users.&
    

    This is yet another hack which sends users to sharer.php on the click of a button from where they can share.

    Copied from another stackoverflow question :

    <a id="fb-share" style='text-decoration:none;' type="icon_link" onClick="window.open('http://www.facebook.com/sharer.php?s=100&amp;p[title]=foo&amp;p[summary]=bar&amp;p[url]=https://www.foobar.com/&amp;p[images][0]=https://www.foobar.com/thumb.gif','sharer','toolbar=0,status=0,width=580,height=325');" href="javascript: void(0)">
        <img src="img/share.gif" width="62" height="18" alt="Share"/>
    </a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I've got a string that has curly quotes in it. I'd like to replace
I have this code to decode numeric html entities to the UTF8 equivalent character.
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words

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.