How to use Facebook Graph api

I use facebook graph Api for my application where I need the data from this page.

http://www.facebook.com/pages/

There is a TV SHOW option on this page. I want to collect all the information on this page. But I did not have an api method for this page.

Please help me with this problem.

+4
source share
1 answer

As far as I can tell, this is not something you can do. This is because Facebook sets it as β€œindexable” columns in its tables. For example, the page table has the type identifier, and the SHOWS TV category identifier is 89, so you can run the FQL query, for example:

 https://api.facebook.com/method/fql.query?query=SELECT page_id, name FROM page WHERE type=89 

or perhaps:

 https://api.facebook.com/method/fql.query?query=SELECT page_id, name FROM page WHERE type='TV SHOW' 

But you will receive this notification:

Your expression is not indexable. The WHERE clause must contain an indexable column.

Unfortunately, only two indexable columns for WHERE statements that use the page table are page_id and name . Thus, you can query this table only one page at a time. Which makes sense when you consider how expensive such a search would be in billions of records.

You can perform a general search for the column "TV show", but it will not give results for the page index according to your request:

 https://graph.facebook.com/search?q=TV%20SHOWS&type=page 

The Graph API is more concerned with introspection / relationships between objects than with an open search protocol.

+3
source

All Articles