title: Get facebook posts by hashtags
body: <p>I've been spending 2 days on Google, looking for a way to retrieve Facebook posts by hashtag.
  I already know that the API doesn't allow anything with hashtags and I find it stupid, but that's it.</p>
  
  <p>Now what I want to try is to get those posts through curl, but I'm not that good at it.
  Let's say for example that you want all public posts containing #baseball.
  When you're logged in, you can see them there: <code>https://www.facebook.com/hashtag/baseball</code>
  So basically, I want to curl that URL to get the posts. But of course it doesn't work...
  Here is the script I use:</p>
  
  <pre class="lang-php prettyprint-override"><code>        $url = 'https://www.facebook.com/hashtag/baseball';
          $http = curl_init($url);
          $fake_user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3';
          curl_setopt($http, CURLOPT_USERAGENT, $fake_user_agent);
          $result = curl_exec($http);
  </code></pre>
  
  <p>As you can imagine, <code>$result</code> is empty...
  I've tried to get an access token before doing that, but even though I add it to the URL, it doesn't work.</p>
  
  <p>Any ideas?</p>