Search code examples
javascriptfacebookselectfacebook-fqlalias

FQL select column name "AS" alias


I am using JSDK, but the problem is for sure in FQL request.

I am trying select which makes basic operation and i want to name the result. But facebook always name it "anon"

SQL example:

SELECT (register_time - unregister_time) AS time_registered FROM users where id='1';

It is all about keyword AS.

FQL with problem:

SELECT 1 + 2  from user where uid=me();

It works, but result 3 will have name anon. But I want something like this:

SELECT 1 + 2 AS result  from user where uid=me();

Unfortunately it doesn't know "AS".

Of course I can get value from "anon". But it is quite unhandy when there is more these values.

Is there any way how to name it?


Solution

  • Currently facebook FQL doesn't supports select column name "AS" alias. We all love to have to this feature. It's really unhandy to access such instances.

    So we have to wait for some time.