User talk:Java

From Facebook Developer Wiki

Jump to: navigation, search

This page should be an introduction and documentation map for Java coders. I'm moving the page's current contents to Talk. --514977297 05:48, 25 July 2007 (PDT)


Was anyone able to compile the Java client library? It's giving some funny errors.


I'm also getting three compile-time errors... all about the convert() function. Code looks fine to me though:

...src/java/com/facebook/api/FacebookSignatureUtil.java:157: convert(java.util.Collection<java.util.Map.Entry<?,java.lang.CharSequence>>) in com.facebook.api.FacebookSignatureUtil cannot be applied to (java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.CharSequence>>)

-- Nick


I ended up using a hack to fix this. Separate convert into two functions: convert_String and convert_FacebookParam, replacing the generic ? with String/FacebookParam. Not pretty, but compiles fine now.

--Nick


Prettier than my solution... I ended up changing the function prototype to take just a collection. Then I had a try catch where I cast it to a java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.CharSequence>>, if that failed then I cast it into the other. It compiled with warnings but worked. I know, I know, I hang my head in shame ;)

[edit] Grabbing A User's Photos

Does anyone know what exactly a call to photos_get(uid) will return? That is, I'm aware of the XML structure it returns, but it seems that I'm only able to grab a static number of photos (say, 75 or so... I forget the exact number) despite the fact that my sample UID is tagged in over 200 photos. Is there a way to request every single photo a UID is tagged in?

-- Carl

[edit] FBML Tag Library for Eclipse

I was considering the idea of creating a tag library for FBML custom tags so they should up in code completion in Eclipse. Has anyone every done this? Can you create tags that don't actually do anything in JSP?

--Trevor

reference