title: Posting on user's timeline on the behalf of the user
body: <p>I created and APP on the Facebook.</p>
  
  <p>Now I am trying to post a comment on the user's timeline using the Graph API but I cannot undestand what I need to do.</p>
  
  <p>I already authorized the Application (I authorized this permissions: <strong>'user_status,publish_stream,user_photos,email'</strong>).</p>
  
  <p>If I look on my profile -> privacy I can see that the APP can: </p>
  
  <pre><code>This app can: Post on your behalf
  This app may post on your behalf, including status updates, photos and more.
  
  Last data access:   
  Basic InformationToday
  See details · Learn more
  Posts on your behalf:   
  Who can see posts this app makes for you on your Facebook timeline? 
  Public
  Notifications:  
  When to notify you? 
  The app sends you a notification
  </code></pre>
  
  <p>So this part seems OK.</p>
  
  <p>On my application I do the following to try to post somenthing on my timeline (I need to post it when I am off line).</p>
  
  <p>1) GET : <strong>https://graph.facebook.com/oauth/access_token?client_id=<em>APPID</em>&amp;client_secret=*APP_SECRET*&amp;grant_type=client_credentials</strong></p>
  
  <p>RESPONSE:</p>
  
  <pre><code>access_token = 422828347771671|UdQELQIf0N7krF4JUo7VwtPLTkk
  </code></pre>
  
  <p>2) GET: <strong>https://graph.facebook.com/search?q=<em>myemail</em>&amp;type=user</strong></p>
  
  <p>RESPONSE:</p>
  
  <pre><code>_"error":_{
  ______"message":_"A_user_access_token_is_required_to_request_this_resource_",
  ______"type":_"OAuthException",
  ______"code":_102
  ___}
  </code></pre>
  
  <p>But reading the documentation (https://developers.facebook.com/docs/reference/api/#searching) it seems that this request does not need any kind of access token.</p>
  
  <p>I also tried to add the access token, but the result is still the same.</p>
  
  <p>3) I know my facebookid so I tried to use it directly:</p>
  
  <p>POST: <strong>https://graph.facebook.com/100001139132403/feed</strong></p>
  
  <p>ARGUMENT: </p>
  
  <p>access_token=422828347771671|UdQELQIf0N7krF4JUo7VwtPLTkk,</p>
  
  <p>message=Hello</p>
  
  <p>RESPONSE:</p>
  
  <pre><code>   "error": {
        "message": "(#200) This API call requires a valid app_id.",
        "type": "OAuthException",
        "code": 200
     }
  }
  </code></pre>
  
  <p>So I tried to add <strong>client_id=APPID</strong> and <strong>app_id=APPID</strong>, I tried to put one, the other and also both arguments as GET or POST but nothing changed.</p>
  
  <p>I checked the APPId ad it is correct.</p>
  
  <p>Do someone have any idea?</p>
  
  <p>Thank you!</p>