开发者

FaceBook FQL issue while extracting album name in Iphone

开发者 https://www.devze.com 2023-01-01 01:47 出处:网络
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.

I have 3 albums in my Face Book account.

  1. profile
  2. NaturePhoto
  3. 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

0

精彩评论

暂无评论...
验证码 换一张
取 消