huuanh1987 / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

Album and photo ids are not Long from Facebook #227

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Login with never account on Facebook
2. Create album via api or web page
3. photos_getAlbums( Long)

What is the expected output? What do you see instead?
Its expected to get all albums, but you get NumberFormatException.
Because some ids are in format 2534534534_2435 for example.

What version of the product are you using? On what operating system?
Product version: 2.1.1
WinXP x86

Please provide any additional information below.
Facebook changes ids and now can be strings not Long. 
If you create some album with older facebook account the he gets normal, 
Long value with never only String in format 234234_2344, sometimes even
235435435_-435.

Original issue reported on code.google.com by slop...@gmail.com on 24 Jul 2009 at 12:13

GoogleCodeExporter commented 8 years ago
this is a duplicate on 
http://code.google.com/p/facebook-java-api/issues/detail?id=189

Original comment by jovc...@gmail.com on 16 Aug 2009 at 9:23

GoogleCodeExporter commented 8 years ago
I can confirm this, and has been documented by Facebook:

http://forum.developers.facebook.com/viewtopic.php?id=31736
"At the same time, we wanted to let you know that the format for album ids and 
photo
ids will be changing from 64-bit integers to strings (max: 50 characters). Note 
that
all existing ids will be backwards compatible. This change is to better support 
the
site's current growth."

Original comment by Matthew....@gmail.com on 15 Sep 2009 at 4:51

GoogleCodeExporter commented 8 years ago
sorry for the wait, please try the latest release.

Original comment by fern...@gmail.com on 1 Nov 2009 at 1:04