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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:10:42+00:00 2026-06-10T02:10:42+00:00

I am creating a Facebook-enabled game where the users will be able to publish

  • 0

I am creating a Facebook-enabled game where the users will be able to publish ‘friend passes’; where a player will be able to post (automatically) such as: ‘I passed James Brown on MY_GAME’. I am using Open Graph for posting my actions. I’ve created an action named ‘pass’ and an object named ‘friend’. Here is my properties (where ‘friendpass’ is a Friend reference):

pass action

I am trying to post actions such as ‘Michael passed a friend on MY_GAME’ and also tag my passed friend[s?]. How can I enable this functionality? Currently, I ve set up a page (actually just meta-tag) renderer and Here is an example rendered page:

 <html and other headers...>
    <meta property="fb:app_id" content="345390505541783">
    <meta property="og:type" content="smileys-game:friendpass">
    <meta id="ogurl" property="og:url" content="http://apps.canpoyrazoglu.com/smileys/pass/mehmet/sucuk">
    <meta property="og:title" content="Friend passed!">
    <meta property="og:image" content="https://s-static.ak.fbcdn.net/images/devsite/attachment_blank.png">
    <meta id="friendid" property="smileys-game:friend" content="735475141">
    <meta id="ogdesc" property="og:description" content="something comes here.">
    <rest of header and page...>

I use the debug tool to get what Facebook sees and there is a link to the action there as a Graph API call. When I click it it returns OAuth error, when I type that URL to the Graph API explorer, I get this:

graph api call result

Graph API sees my ‘friend’ object as a webpage, which is actually a reference to a Facebook ID (my own ID). How can I make use of that Friend ID useful and make a link to the friend in the post?

Thanks,
Can.

  • 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-10T02:10:44+00:00Added an answer on June 10, 2026 at 2:10 am

    When you create your action type, you need to use the profile object type (aka connected object type). Here I created my verb to “high five” a person:

    action type config

    The object type will be configured automatically because profile is a built-in, FB-provided object type. So you don’t have to configure the object type, unless there’s an advanced setting you need.

    Then create an aggregation:

    aggregation config

    Your og meta tags for the object then need to use the type profile (filepath for this example is /og/profile2.html):

    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# high_fiver: http://ogp.me/ns/fb/high_fiver#">
       <meta property="fb:app_id"      content="27877347222" />
       <meta property="og:url"         content="http://www.rottentomatoes.com/celebrity/tom_hanks/" />
       <meta property="og:type"        content="profile" />
       <meta property="og:title"       content="Tom Hanks" />
       <meta property="og:description" content="Tom Hanks profile on RT" />
       <meta property="og:image"       content="http://content6.flixster.com/rtactor/40/37/40376_pro.jpg" />
    

    Notice that you can point to any profile, not just a FB profile. Above, I am using Tom Hanks’ profile on Rotten Tomatoes, which uses Open Graph and has og:type profile.

    And I publish actions like so:

    <script type="text/javascript">
     function postAction() {
       FB.api(
         '/me/high_fiver:high_five' + '?profile=http://www.plooza.com/og/profile2.html',
         'post',
         function(response) {
           if (!response || response.error) {
             alert('Error occured');
             console.log(response.error);
           } else {
             alert('Post was successful! Action ID: ' + response.id);
           }
         }
       );
     }
    </script>
    

    Finally, a user of my app will publish the OG story on his/her timeline (in a “timeline unit”):

    profile story unit

    When you click the link “Tom Hanks” in the story unit, it loads the Rotten Tomatoes profile.

    You can try this demo app here: http://plooza.com/og/profile2.html

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

Sidebar

Related Questions

I am creating facebook application where in user will be able to fetch the
Am creating a Facebook like chat application.(Say for example am chatting with 4 users)
I am creating a Facebook application that will download all the photos in an
I am creating a Facebook open graph action called post. It only appears in
I am creating iphone app with facebook graph api. I am able to get
I am just creating a facebook tab on a users page. I am using
I am creating a Facebook application that will integrate into a mobile version of
I am creating a Facebook application which should allow the user do post something
I'm a php newbie, and I'm creating a Facebook application for my flash game.
I am creating a game that needs to be integrated with Facebook. The game

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.