Open japentaca opened 8 years ago
cover_photo is allways null Do you want me to create a new issue about the absence of the cover_photo thumbnail in the albums array?
Changes from 2.3 to 2.4 are very radical. I see a huge difference in the json response to me/albums
v .2.3 req=2.3/me/albums
{
"data": [
{
"id": "1841565517520",
"can_upload": false,
"count": 180,
"cover_photo": "10201473503018115",
"created_time": "2010-12-28T20:04:43+0000",
"from": {
"name": "Jape Ntaca",
"id": "1192044573"
},
"link": "https://www.facebook.com/album.php?fbid=1841565517520&id=1192044573&aid=2106666",
"name": "Timeline Photos",
"privacy": "everyone",
"type": "wall",
"updated_time": "2015-10-03T21:10:45+0000"
},..etc
v 2.4 req=2.4/me/albums
"data": [
{
"created_time": "2010-12-28T20:04:43+0000",
"name": "Timeline Photos",
"id": "1841565517520"
},..etc
But in 2.4 if I make the album request including the cover_photo field, the structure changes it's syntax, adding a cover_photo object inside the json
req=2.4/me/albums?fields=cover_photo
{
"data": [
{
"cover_photo": {
"created_time": "2013-06-14T18:29:40+0000",
"name": "Una amistad que cumple 44",
"id": "10201473503018115"
},
"id": "1841565517520"
},..etc..
I even tried modifyng the line number 82 to me/albums?fields=name,cover_photo' but the thumbnail property of the albums arrays points to an invalid url.
Sorry for my english, I'm from Argentina.
Lets just put them here.
It happens even in the demo page:
https://adodson.com/hello.js/demos/albums.html#photo-albums-w-hellojs
I think something has changed since the GraphAPI failures during the last week of September 2015.
BTW Great library. Congrats.