0

here is my query:

FB.api(
       {    
           method: 'fql.multiquery',   
           queries: {    
'friends':'SELECT uid1 FROM friend WHERE uid2= me()',   
'likes':'SELECT object_id FROM like WHERE user_id in (SELECT uid1 FROM #friends)'
}  
});
ifaour
  • 38,035
  • 12
  • 72
  • 79
dupdup
  • 772
  • 1
  • 6
  • 14

2 Answers2

0

Some FQL queries require that the queried user be logged in. In order to run theis queries without the user being logged in, your app must have the offline_access permission.

Elad Lachmi
  • 10,406
  • 13
  • 71
  • 133
  • i have access_token of the current user. and i am trying from console http://developers.facebook.com/docs/reference/rest/fql.multiquery/ – dupdup Mar 03 '11 at 14:49
  • Even if you do have a token for the user, if your app does not have the offline_access permision, the token might have expired already. – Elad Lachmi Mar 03 '11 at 14:58
  • nope authorization is not the problem real part of the question is the indexed fields cannot be queried except actual user . – dupdup Mar 03 '11 at 15:39
0

indexed fields cannot be queried except actual user for query your friends likes look at How to get friends likes via Facebook API

Community
  • 1
  • 1
dupdup
  • 772
  • 1
  • 6
  • 14