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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:02:46+00:00 2026-06-12T20:02:46+00:00

Is there anyway to determine if an object in Open Graph has been liked?

  • 0

Is there anyway to determine if an object in Open Graph has been liked?

The documentation seem to imply that I have to post a like action on my object and expect an Error 3501 when it has been liked before.

From an UI pov this doesn’t make sense, I want to change my like button ui to an “unlike” state without having to like my object and see if it fails or not.

Thanks!

  • 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-12T20:02:47+00:00Added an answer on June 12, 2026 at 8:02 pm

    If you’re looking specifically for likes on an Open Graph Object (as in the target of an Open Graph Action), and you’re talking about built-in (og.likes) likes, Shawn’s answer is mostly right, but you need to look in a different FQL table.

    An Open Graph Object is just a URL that resolves to a page that has og:type meta in its header. Facebook treats these as link objects (you can check this with SELECT type FROM object_url where url='http://url.to/your/object')

    You can find interesting information in the link and link_stat FQL tables, but what you’re looking for is the join table where Facebook relates user likes to links: the url_likes table.

    So, to tell if the current user has liked a given Open Graph Object, you’d use:

    SELECT user_id FROM url_like WHERE user_id=me() AND url='http://url.to/your/object'
    

    If you get a value back, the current user has already liked it. If you get an empty array, the current user has not liked it.

    To my knowledge, there’s no way to do this with the Graph API, only FQL. I’d love to be proven wrong, though.

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

Sidebar

Related Questions

Is there anyway to determine the Exceptions that can be thrown by methods in
Is there anyway to determine how many requests or how much data you have
Is there anyway to know this? I found one post that asked a very
Given an ActionScript Function object, is there any way to determine whether that function
I have some code that has the invariant that an object must be constructed
Is there any way to determine a page numer (in paged list), that contains
In Actionscript 3 is there any way to determine the precise display object hierarchy
I plan to have some (a lot of) objects inside of svg-object that will
.Net 3.5, using C# I have an instance of a class (A) that has
Is there any way to determine in Javascript if an object was created using

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.