title: Geo Targeting Posts in Facebook using Graph API
body: <p>I’ve been trying to post geolocation-targeted status updates on a Page through the Graph API, so far with limited success.</p>
  
  <p>Using the Facebook graph api, I’ve been successfully able to geo-target countries, but not cities or locales.</p>
  
  <p>Trying any of these:</p>
  
  <pre><code>&gt;&gt;&gt; graph.put_object("me", "feed", message="Targeted at Boston", targeting={"countries": 'US', 'cities': 'boston, ma'})                                                                                     
  &gt;&gt;&gt; graph.put_object("me", "feed", message="Targeted at Boston", targeting={"countries": 'US', 'cities': ['us, boston, ma']})
  &gt;&gt;&gt; graph.put_object("me", "feed", message="Targeted at Boston", targeting=[{'country': 'us', 'city': 'boston', 'region': 'ma'}])
  &gt;&gt;&gt; graph.put_object("me", "feed", message="Targeted at Seattle", targeting={"countries": 'US', 'cities': [{'name': 'seattle, wa'}]})
  &gt;&gt;&gt; graph.put_object("me", "feed", message="Targeted at Seattle", targeting={"countries": 'US', 'cities': [{'name': 'seattle, wa'}]})
  </code></pre>
  
  <p>results in either a public post, or a post with CUSTOM privacy, but not targeted to any specific location.</p>
  
  <p>This:</p>
  
  <pre><code>&gt;&gt;&gt; graph.put_object("me", "feed", message="Targeted at Seattle", targeting={"countries": 'US'})
  </code></pre>
  
  <p>works to selectively target only the United States.</p>
  
  <p>I'm using the <a href="https://github.com/facebook/python-sdk" rel="nofollow">Facebook python-sdk</a> for the requests. </p>
  
  <p>I’ve been trying multiple ways to get the targeting to work, but it’s poorly documented and there isn’t much information available on the Facebook developer forums. </p>
  
  <p>Has anyone been able to pass json used to geotarget multiple targets....like Boston, MA, Paris, France (in french), and then both at the same time?</p>