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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:43:58+00:00 2026-06-12T00:43:58+00:00

THis is a very newbie question about facebook open graph. I did the tutorial

  • 0

THis is a very newbie question about facebook open graph. I did the tutorial and have no problem create new namespace with new verbs and new nouns. However, I can’t get a simple LIKE an OBJECT to work…

Anyway, here’s the result of everything i’m doing.

I am getting the following error when I try to execute a custom built-in like with facebook’s open graph:

Object
error: Object
code: 1611072
message: "The action you're trying to publish is invalid because it does not specify any reference objects. At least one of the following properties must be specified: object."
type: "Exception"
__proto__: Object
__proto__: Object

Here is my code:

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
      xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
  <title>OG Tutorial App</title>

 <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object#">
  <meta property="fb:app_id" content="99999999999" /> 
  <meta property="og:type"   content="object" /> 
  <meta property="og:url"    content="http://jl.com/" /> 
  <meta property="og:title"  content="Sample Object" /> 
  <meta property="og:image"  content="https://s-static.ak.fbcdn.net/images/devsite/attachment_blank.png" /> 

</head>
<body>
  <div id="fb-root"></div>
  <script type="text/javascript">
  function postbake()
  {
      FB.api(
        '/me/og.likes',
        'post',
        { recipe: 'http://jl.com/' },
        function(response) {
           if (!response || response.error) {
              alert('Error occured');
              console.log(response);
           } else {
              alert('bake was successful! Action ID: ' + response.id);
           }
        });
  }
  </script>

  <script>
    window.fbAsyncInit = function() {
      FB.init({
        appId      : '999999999999', // App ID
        status     : true, // check login status
        cookie     : true, // enable cookies to allow the server to access the session
        xfbml      : true  // parse XFBML
      });
    };

    // Load the SDK Asynchronously
    (function(d){
      var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
      js = d.createElement('script'); js.id = id; js.async = true;
      js.src = "//connect.facebook.net/en_US/all.js";
      d.getElementsByTagName('head')[0].appendChild(js);
    }(document));
  </script>

  <fb:login-button show-faces="true" width="200" max-rows="1" scope="publish_actions">
  </fb:login-button>

   <input type="button" onclick="postbake()" value="like it" />
</body>
</html>
  • 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-12T00:43:59+00:00Added an answer on June 12, 2026 at 12:43 am

    message: “The action you’re trying to publish is invalid because it does not specify any reference objects. At least one of the following properties must be specified: object.”

    You are trying to post your object to like as recipe – but the parameter name has to be object instead …

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

Sidebar

Related Questions

This is a very newbie question. I want to know how to create a
This is a very newbie question, and this is something I have done many
This is a very newbie question, but something completely new to me. In my
please help me, i'm very newbie i have question about datatables (jquery plug in)
I'm very new to F# so please excuse the completely newbie question: I have
Sorry for this newbie question, I'm very new to C# and it's semantics. I
Sorry this is a very newbie question. We have this massive application I am
This must be a very stupid newbie question, but I have spent my whole
This is a very newbie question and i will probably get downvoted for it,
This might be a very newbie question, but I didn't find anything satisfying I

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.