user954297
user954297

Reputation:

FQL requesting error

String fqlurl="https://api.facebook.com/method/fql.query?query=SELECT name FROM user WHERE uid = me()";

Does anyone could tell me what's wrong with this url?

I have illegalArgumentException error.

Upvotes: 1

Views: 62

Answers (1)

Sathyajith Bhat
Sathyajith Bhat

Reputation: 21851

You'll need to URLEncode the query.

So, your query becomes :

SELECT+name+FROM+user+WHERE+uid+%3D+me%28%29 

from

SELECT name FROM user WHERE uid = me()

Upvotes: 1

Related Questions