I have 3 albums in my Face Book account.
- profile
- NaturePhoto
- Profile Pictures
when i use below FQL Query the "request:didLoad:"
delegate return the empty array.
NSString* fql =[NSString stringWithFormat:@"SELECT cover_pid,name FROM album WHERE owner == %lld", session.uid];
NSDictionary* params = [NSDictionary dictionaryWithObject:fql forKey:@"query"];
[[FBRequest requestWithDelegate:self] call:@"facebook.fql.query" params:params];
I a开发者_JAVA百科m really struck in Face book FQL.
It should be =
not ==
A query for the current authenticated user would be
SELECT cover_pid,name FROM album WHERE owner = me()
Which returns a correct response
精彩评论