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 6953035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:25:36+00:00 2026-05-27T14:25:36+00:00

The first issue that I’d like to highlight is that due to same-origin policy,

  • 0

The first issue that I’d like to highlight is that due to same-origin policy, Facebook restrictions and lack of variables in Facebook JS SDK, it is not possible to tell what is the URL of the page that is loading the present App. The solution is to generate URL using backend. However, there should be JS SDK variable holding this information.

http://www.facebook.com/pages/[any-random-string]/[page-id-got-from-signed-request]?sk=app_[app-id]

Now, to the error itself. I am using this URL to generate like button:

<div class="fb-like" data-href="<?=FACEBOOK_TAB_URL?>" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-font="lucida grande"></div>

And FB.Event.subscribe to detect when user likes the content. However, when user clicks the like button, the following response comes from Facebook:

{

    "__ar":1,
    "payload":{
        "requires_login":false,
        "success":false,
        "already_connected":false,
        "is_admin":false,
        "show_error":true,
        "error_info":{
            "brief":"An error has occurred.",
            "full":"There was an error liking the page. If you are the page owner, please try running your page through the linter on the Facebook devsite (https:\/\/developers.facebook.com\/tools\/lint\/) and fixing any errors.",
            "errorUri":"\/connect\/connect_to_node_error.php?title=An+error+has+occurred.&body=There+was+an+error+liking+the+page.+If+you+are+the+page+owner\u00252C+please+try+running+your+page+through+the+linter+on+the+Facebook+devsite+\u002528https\u00253A\u00252F\u00252Fdevelopers.facebook.com\u00252Ftools\u00252Flint\u00252F\u002529+and+fixing+any+errors.&hash=AQBOXfQcBTjYQ9b7"
        }
    },
    "jscc":""

}

Obviously, since this is Facebook fan page URL, Facebook debugger is not much of a use to 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-27T14:25:37+00:00Added an answer on May 27, 2026 at 2:25 pm

    This issue is related with Facebook caching URLs. It appears when you like the content, then unlike and trying to like it again within short time span. The simple solution is to add random hash at the end of the data-href="", e.g. using uniqid().

    Note that OpenGraph tags scraper will follow the last og:url. Therefore, even if you have random hash appended to date-href parameter, as long as the URL being liked has its own og:url tag, counter is going to function properly.

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

Sidebar

Related Questions

Come across what looks at first sight like an MT-issue, but I'm trying to
long time reader, first time poster. I’m coming with an issue that many of
Do PHP5.3 have any known bug issue that makes non static variables in scope
Who thought that styling a list of links could be so troublesome! First issue
I'm running into some type of a scope issue that's preventing instance variables from
I a couple of issues using Tablesorter 2.0.3. The first issue is when I
First of all, I am aware my issue is against the philosophy of Android,
First of all: I'm at Scala 2.8 I have a slight issue while using
First off, there's a bit of background to this issue available on my blog:
We have an issue on our page whereby the first time a button posts

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.