FQL Query (Get Friends)

Sep 9, 2009 at 5:57 AM

Im trying to re-create the ability on a web page to see all the friends of a FBUID.  I understand why im getting the below but why does FB allow this on its site and not in FQL? ie I can browse to anyone who isnt my friend in FB and see ALL of thier friend list.  THanks in advance for your help!

<font size="2"><font size="2">


[.............other instance code note relevent.........] 

</font>Dim fbuid As String = Request.QueryString("uid").ToString</font><font size="2">

Dim fbuid As String = Request.QueryString("uid").ToString

[.............other instance code note relevent.........] 



Dim resimQuery As String = _fbService.DirectFQLQuery("SELECT uid2 FROM friend WHERE uid1='" + fbuid + "'")

TextBox1.Text = resimQuery

I get for any random Fbuid

<font size="2">

<?xml version="1.0" encoding="UTF-8"?>
<error_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <error_msg>Can't lookup all friends of 722797098; can only lookup for the logged in user (1011140288) or for pairs of users</error_msg>
  <request_args list="true">
      <value>SELECT uid2 FROM friend WHERE uid1='722797098'</value>