I'm trying to query the created time for a facebook link by executing the following fql question
SELECT created_time FROM link WHERE owner = me()
according to the developers documentation (https://developers.facebook.com/docs/reference/fql/link) the owner field is indexed but the graph api throws the following exception.
{
"error": {
"message": "Your statement is not indexable. The WHERE clause must contain an indexable column. Such columns are marked with * in the tables linked from http://developers.facebook.com/docs/reference/fql ",
"type": "NoIndexFunctionException",
"code": 604
}
}
what is wrong with my query?
Select the FQL Query button above the text box on the Graph API Explorer and it works fine. The links go to the Graph API editor instead of the FQL editor, which is wrong.
Example
Related
I've tried using the Facebook Graph API. But the results came out, it did not show up to 150 groups. I'm not sure that it is a limitation of Facebook or not.
An example URL that I tested.
Now, I would like to test the FQL Query. But did not succeed. I have the following error
(#604) Your statement is not indexable. The WHERE clause must contain an indexable column. Such columns are marked with * in the tables linked from http://developers.facebook.com/docs/reference/fql
This is a SQL statement
SELECT gid, name, privacy FROM group WHERE strpos(name, "programming") >= 0
I am learning how to use search on the Facebook Graph API.
I want to format a query that will return all Facebook pages in the category Musician/Band.
Condsider the public page for The Beatles (https://graph.facebook.com/thebeatles), you can clearly see it as a category here.
So far, as I understand it v2.1 of the Graph API does not accept search by category, and I need to use v2.0 FQL. Is this correct?
If so, what would the correct syntax for the following pseudocode:
SEARCH ALL PAGES WITH CATEGORY='MUSCIAN/BAND'.
There's no way to search Pages by Category unfortunately.
The query
select page_id, name from page where categories.name = 'Musician/Band'
fails with
{
"error": {
"message": "(#604) Your statement is not indexable. The WHERE clause must contain an indexable column. Such columns are marked with * in the tables linked from http://developers.facebook.com/docs/reference/fql ",
"type": "OAuthException",
"code": 604
}
}
although the categories.name is marked as indexable (https://developers.facebook.com/docs/reference/fql/page/)
I only know the email, first name and last name of a person. Is it possible to get the User ID through FQL? Thank you.
The columns which u are having from the user table in facebook are not indexable. For fetching using the where clause u must have a indexable column. If u will try with these columns u will get the following error
{
"error": {
"message": "Your statement is not indexable. The WHERE clause must contain an indexable column. Such columns are marked with * in the tables linked from http://developers.facebook.com/docs/reference/fql ",
"type": "NoIndexFunctionException",
"code": 604
}
}
So for getting User ID you need to have any of the indexable columns.
I would like to know how to get a list of id facebook's user from my current location,
I just did that SELECT uid , current_location FROM user WHERE current_location = '115175415163151'
but I get the next error
"{
"error": {
"message": "Your statement is not indexable. The WHERE clause must contain an indexable column. Such columns are marked with * in the tables linked from http://developers.facebook.com/docs/reference/fql ",
"type": "NoIndexFunctionException",
"code": 604
}
}"
Sadly you just cannot get User's location as it requires either user_location or friends_location , quoting from User documentation that means you just can't retrieve any User's location without User allowing you the required permission.
Secondly you cannot query on fql without using an indexable column in WHERE clause, quoting from fql documentation
Your query must also be indexable, meaning that it queries properties that are marked as indexable in the documentation below.
i have this query:
select eid from event where creator = 100000956216009
Return this error:
error: 604
Your statement is not indexable. The WHERE clause must contain an indexable column. Such columns are marked with * in the tables linked from
http://wiki.developers.facebook.com/index.php/FQL_Tables
How i can get all My Created events? TIA
I need to print my events created on my fb account and print it on my External Site.
solved, my problem is the permission:
https://developers.facebook.com/docs/reference/api/permissions/
You should read http://developers.facebook.com/docs/reference/rest/events.get