DirectFQLQuery and return xml decompose problem.

Apr 7, 2008 at 10:24 PM
Dim resimQuery As String = _fbService.DirectFQLQuery("SELECT pic FROM user WHERE uid=12345")
'This resimQuery string get the following xml:
'<?xml version="1.0" encoding="UTF-8"?>
'<fqlqueryresponse xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" list="true">
' <user>
' <pic>http://profile.ak.facebook.com/profile5/540/124/s12345_3002.jpg</pic>
' </user>
'</fqlqueryresponse>
#########################

Dim objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.async = False
objXML.loadxml(resimQuery)
Dim objNODE = objXML.selectSingleNode("fqlqueryresponse/user/pic")
Dim url = objNODE.childNodes.item(0).Text
TextBox1.Text = url
objNODE = Nothing
objXML = Nothing
####################################
If i use this code , i get following error .
#########################
Object variable or With block variable not set.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object variable or With block variable not set.

Line 77: Dim url = objNODE.childNodes.item(0).Text
#####################################
But if i use this code another asp.net page , it correctly works.

Anyone help me ?
Thanks and sorry for my bad english.
Jan 29, 2009 at 7:08 AM
Has DirectFQLQuery() been deprecated in version 2.0. I cant seem to find it when I dot out a FacebookService object?