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

The Archive Base Latest Questions

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

I’m having some serious trouble with tagging people in a wall post. I’m working

  • 0

I’m having some serious trouble with tagging people in a wall post. I’m working with CakePHP right now and using the FB API to POST to the Graph API. Here’s the code:

    $theMsg1 = $this->Connect->user('name').' tagged ';
    $theMsg2 = $friendName.' on the IF Tag website.';
    $msg1Len = strlen($theMsg1);
    $fbNameLen = strlen($friendName);`

    $fbcall = FB::api($fbID.'/feed', 'POST', array(
        'name'    => $theTag['Tag']['name'],
        'caption' => 'IF Tag is an application that allows you to interact with people on Facebook.',
        'message' => $theMsg1.$theMsg2,
        'message_tags' => array(
            $msg1Len => array(
                'id' => $friendID,
                'name' => $friendName,
                'offset' => $msg1Len,
                'length' => $fbNameLen
            ),
            'picture' => 'http://patronsocialclub.com/img/global/head/drinkmaker.gif',
            'link' => 'iftag.local'
        )
    ));

From what I understand and what I’ve read I’m supposed to use the message_tags object to tag people in a post but it’s not working at all. It doesn’t give any errors, just doesn’t tag.

I’ve also tried using @[{userid}:1:{username}] from other posts I’ve seen but that doesn’t seem to work with the current iteration of the API.

  • 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-11T06:12:59+00:00Added an answer on June 11, 2026 at 6:12 am

    See my answer here Facebook Graph API Post with_tags option

    the gist of it is

    I think what you want to use is just “tags” and it should just contain id’s as specified here https://developers.facebook.com/docs/reference/api/user/#posts

    **note you cannot do this though without also specifying a place

    Facebook have now released mention tagging which might be the solution you need https://developers.facebook.com/docs/opengraph/mention_tagging/ but it requires custom open graph actions.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
We're building an app, our first using Rails 3, and we're having to build
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I'm making a simple page using Google Maps API 3. My first. One marker
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

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.