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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:33:05+00:00 2026-05-31T21:33:05+00:00

I am trying to record whenever a user clicks on Facebook Like button. Facebook

  • 0

I am trying to record whenever a user clicks on Facebook Like button. Facebook documentation even specifically mentions this possibility:

“suppose you want to record Likes in your database whenever a button is clicked”:

FB.Event.subscribe('edge.create',
    function(response) {
        alert('You liked the URL: ' + response);
    }
);

It then tells you to “replace the alert() with your handling code.” Is there a proper way to create this handling code? How would it be called? I tried searching for some easy solution, but haven’t been successful. The problem is I am not familiar with JavaScript, but it shouldn’t be this hard to find what I presume is a one-line solution.

UPDATE: I understand that I have to call a separate script to actually interact with the database. I am just not sure how to call it exactly and if the Facebook JavaScript SDK provides any assistance with that. Based on the first answer I received, I should use something like jQuery, but that seems a bit of an overkill to me. Am I wrong in that assumption?

  • 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-31T21:33:06+00:00Added an answer on May 31, 2026 at 9:33 pm

    You will need more than one line, because you will need a database to record it in as well. You would use an ajax call to a page you have setup to record the click event. The easiest ajax call to setup is jquery’s IMO. http://api.jquery.com/jQuery.ajax/ But you still need something to submit to on the server side to record your click, such as an asp or php page with a sql or mysql database, or even a text file on the server.

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

Sidebar

Related Questions

I am trying to record using the iphones microphone: This is my code: NSArray
I'm trying to record audio this.recorder = new android.media.MediaRecorder(); this.recorder.setAudioSource(android.media.MediaRecorder.AudioSource.MIC); this.recorder.setOutputFormat(android.media.MediaRecorder.OutputFormat.DEFAULT); this.recorder.setAudioEncoder(android.media.MediaRecorder.AudioEncoder.DEFAULT); this.recorder.setOutputFile(pruebaAudioRecorder.mp4); **this.recorder.prepare();**
I'm trying to add record locking to a site. This isn't database locking where
I'm trying to change the body background image whenever orientation changes. This seemed pretty
With Linux/GCC/C++, I'd like to record something to stderr whenever malloc/free/new/delete are called. I'm
I am getting this error in rails whenever i am trying to create an
I am trying to record the success or failure of a number of copy
I am trying to do record inserts on a table where the Primary Key
I am using Delphi 2007 and I am trying to make record type file.
I am new to Nhibernate, I am trying to get record by ID and

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.