title: User access token for search via facebook graph
body: <p>According to the instruction given <a href="http://developers.facebook.com/docs/reference/api/" rel="noreferrer">here</a> searching public information (as <a href="https://graph.facebook.com/search?q=QUERY&amp;type=OBJECT_TYPE" rel="noreferrer">https://graph.facebook.com/search?q=QUERY&amp;type=OBJECT_TYPE</a>) needs to have a valid access token. As I know access token is when a user authorized an apps to access his information; but this is searing the public information. How to get an apps access token to search public information?</p>
  <p>In that page, facebook automatically add my access token to the link as</p>
  <pre><code>https://graph.facebook.com/search?q=watermelon&amp;type=post&amp;access_token=MY_ACCESS_TOKEN
  </code></pre>
  <p>I created an access token by my apps as <a href="https://graph.facebook.com/oauth/access_token?client_id=APP_ID&amp;client_secret=SECRET_ID&amp;grant_type=client_credentials" rel="noreferrer">https://graph.facebook.com/oauth/access_token?client_id=APP_ID&amp;client_secret=SECRET_ID&amp;grant_type=client_credentials</a></p>
  <p>When I use the generated access token in url <a href="https://graph.facebook.com/search?q=watermelon&amp;type=post&amp;access_token=GENERATED_ACCESS_TOKEN" rel="noreferrer">https://graph.facebook.com/search?q=watermelon&amp;type=post&amp;access_token=GENERATED_ACCESS_TOKEN</a>, it gives an error</p>
  <pre><code>{
     &quot;error&quot;: {
        &quot;message&quot;: &quot;A user access token is required to request this resource.&quot;,
        &quot;type&quot;: &quot;OAuthException&quot;
     }
  }
  </code></pre>
  <ol>
  <li>How can I generate access token by my apps?</li>
  <li>Or do I need to generate access token by own user account? if yes, how?</li>
  <li>Since it is searching public profile, facebook should not need authorization on every search, can I generate a permanent access token to perform different searches?</li>
  </ol>