title: Get page feed with Facebook API Graph in Python
body: <p>I'm trying to fetch facebook page information and feed/posts, and specifically the text of each post.
  I've registered a new test app, on Facebook for Developers, and I get client token, secret token and ID. I've not inserted any privacy link or Terms of Use link because it is a personal test.
  In the Graph API Explorer I get the app access token, and I'm using it.
  Using facebook-sdk I can get pages information via the following code:</p>
  
  <pre><code>accessToken = "xxx"
  user = 'BillGates'
  
  graph = facebook.GraphAPI(accessToken, version='2.7')
  
  profile = graph.get_object(id=user, fields='id,name,about,link,location,hometown,website', limit=100)
  </code></pre>
  
  <p>So far, no problem. Now, I would want to get posts with this code:</p>
  
  <pre><code>posts = graph.get_connections(profile['id'], connection_name='posts', fields='caption,created_time,description,from,link,message,object_id,parent_id,permalink_url,picture,privacy,place,properties,shares,source,status_type,story,to,type,with_tags', limit='100')
  </code></pre>
  
  <p>or making a <code>request.get()</code> at this url:</p>
  
  <pre><code>url = "https://graph.facebook.com/v2.7/BillGates?fields=feed{caption,created_time,description,from,link,message,object_id,parent_id,permalink_url,picture,source,status_type,type}&amp;limit=100&amp;access_token=xxx"
  </code></pre>
  
  <p>but I receive this error:</p>
  
  <pre><code>facebook.GraphAPIError: (#15) Requires session when calling from a desktop app
  </code></pre>
  
  <p>My app has the contact email, is a native or computer application (it will run on a linux server), is public and has just email, public_profile and user_friend as approved elements. Other elements can't be approved because I've to fill notes, but I'm unable to fill them.</p>
  
  <p>My idea is to request, periodically, a "general" access token, or an access token for each page I've to analyze.</p>
  
  <p>Any helps would be appreciated.</p>