You can get messages from Facebook pages. Try out the code below with your own API key. You API key can be generated on the Facebook Developers page with the graph API explorer: https://developers.facebook.com/tools/explorer/

Hint: You cannot view this in the table view as these are key value objects, not tuples. View it as a list. 

 

#PARSER PQL
#RUNQUERY

facebook :=                    ACCESS({
                                      source='Facebook',
                                      wrapper='GenericPull',
                                      transport='Facebook',
                                      protocol='Facebook',
                                      datahandler='document',
                                      schema=[
                                        ['message','String'],
                                        ['id','String'],
                                        ['created_time','String']
                                      ],
                                      options=[
                                        ['page', 'cocacola'],
                                        ['accessToken', 'YOUR ACCESS TOKEN (VERY LONG STRING)'],
                                        ['limit', '50'],
                                        ['scheduler.delay','1000']
                                      ]                                                                   
                                    }                                                         
                                  ) 
                
  • No labels