1

Resolved

facebook.photos.gettags() throws exception - Input string was not in a correct format

description

if the subjectid is empty and trying to get it
after pulling the xml using the commandis photos.gettags.
it through error
"input string was not in the currect format"
 
code example
//getting the tags of the photo
IList<facebook.Schema.photo_tag> Itags = api.photos.getTags(LpId);
foreach (facebook.Schema.photo_tag tag in Itags)
{
long l;
l=tag.subject;
}
 
XML of the retuen photo tag
 
tag = {<photo_tag xmlns="http://api.facebook.com/1.0/">
<pid>your pid</pid>
<subject /> *** empty subject it throw the error
<text>ya</text>
<xcoord>60.231</xcoord>
<ycoord>26.8132</ycoord>
<created>1236794195</created>
</photo_tag>}

comments

jschuster wrote Jul 28, 2009 at 9:13 PM

This should be fixed now. Please let us know if you are still having problems.

amitplex wrote Sep 27, 2009 at 6:06 PM

hello,

can you please state what was the fix?

I am interested in applying it on my version until the next stable release.

Thanks,

Amit

wrote Feb 21, 2013 at 11:38 PM

wrote May 16, 2013 at 11:10 AM

wrote May 16, 2013 at 11:10 AM

wrote Jun 14, 2013 at 7:27 AM