title: Tagging people in wall post with POST to Facebook Graph API
body: <p>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:</p>
  
  <pre><code>    $theMsg1 = $this-&gt;Connect-&gt;user('name').' tagged ';
      $theMsg2 = $friendName.' on the IF Tag website.';
      $msg1Len = strlen($theMsg1);
      $fbNameLen = strlen($friendName);`
  
      $fbcall = FB::api($fbID.'/feed', 'POST', array(
          'name'    =&gt; $theTag['Tag']['name'],
          'caption' =&gt; 'IF Tag is an application that allows you to interact with people on Facebook.',
          'message' =&gt; $theMsg1.$theMsg2,
          'message_tags' =&gt; array(
              $msg1Len =&gt; array(
                  'id' =&gt; $friendID,
                  'name' =&gt; $friendName,
                  'offset' =&gt; $msg1Len,
                  'length' =&gt; $fbNameLen
              ),
              'picture' =&gt; 'http://patronsocialclub.com/img/global/head/drinkmaker.gif',
              'link' =&gt; 'iftag.local'
          )
      ));
  </code></pre>
  
  <p>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.</p>
  
  <p>I've also tried using <code>@[{userid}:1:{username}]</code> from other posts I've seen but that doesn't seem to work with the current iteration of the API.</p>