title: Facebook graph API, how to "like" post-id with Application Access Token
body: <p>I am trying to like a specific post on behalf of a facebook-user with a <strong>desktop application</strong>, through the graph api. Application is designed to use <a href="https://developers.facebook.com/docs/facebook-login/access-tokens/#architecture" rel="nofollow">architechture variant 3rd from the top</a></p>
  
  <p>The application has an <a href="https://developers.facebook.com/docs/facebook-login/access-tokens/#apptokens" rel="nofollow">application access token</a>. The test-users have granted the app all possible permissions, but only publish_actions, publish_stream should be needed(*1).</p>
  
  <p>The solution (*2) for a web-based application which has access to a user access token is simple:
  then you simply:  </p>
  
  <pre><code>POST https://graph.facebook.com/&lt;post-id&gt;/likes?access_token=ABC123...
  </code></pre>
  
  <p>Posting to a user-ids feed and commenting is no problem. But what is the syntactically correct way of liking facebook graph objects with post-ids?</p>
  
  <p>I've tried og.likes:</p>
  
  <p>But the interface seem to only allow me to like objects defined in my facebook application.
  Ex:</p>
  
  <pre><code>POST https://graph.facebook.com/&lt;user-id&gt;/likes?object={"fb:post_id":"&lt;post-id&gt;","og:title":""}access_token=ABC123...
  </code></pre>
  
  <p>Which actually gives a returned action-id, but they never show up as a real "like" nor contribute to the like count of a comment/post.</p>
  
  <p>If I give the object parameter og:title a value it shows up, but only as a "like action".
  Which shows up in the timeline as:</p>
  
  <pre><code> &lt;test-user name&gt; likes an object on &lt;app-name&gt;
  </code></pre>
  
  <p>Side note: When defining new objects for your app fb:post_id fb:comment_id, and a couple of other ones are reserved. And should return an id which is reachable with through the graph-api, so I figured it would be possible to create similar objects to what is created through.</p>
  
  <p>(1) developers.facebook.com/docs/facebook-login/permissions/#reference-extended-publish</p>
  
  <p>(2) stackoverflow.com/questions/4534975/like-posts-over-facebook-graph-api</p>