• Resolved robkm

    (@robkm)


    I ask because newly created albums are not being found. I have created several albums in various ways and, after clicking find, they are not being listed.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    I have not put in any threshold. How many are you seeing, and how many are you expecting to see? Google might have its own threshold, though I don’t recall seeing one documented.

    Thread Starter robkm

    (@robkm)

    I count 282 albums on G Photos and 272 albums being found. I usually use ctrl + F when using the Album ID Finder, so I know I’m not overlooking the missing albums.

    Plugin Author Sayontan Sinha

    (@sayontan)

    When you go to https://picasaweb.google.com/data/feed/api/user/your-user-name?kind=album&prettyprint=true, how many albums do you see? You can count the occurrence of <entry> there. If you are seeing 272 there, it is likely to be a bug at Google’s end.

    Thread Starter robkm

    (@robkm)

    Thank you for the link. There was about 284 albums. One thing I noticed is the albums that are not showing in the ID finder or on my website when I place the shortcode are marked <rights type='text'>protected</rights> while all the working albums have <rights type='text'>public</rights>

    I have no way to manually set newly created albums to public, but I did connect https://www.svenbluege.de/picasa/v1.1/, which had the simple buttons to make albums private, protected and public. However, Google has just changed the API again, so even that doesn’t work anymore. Uuuuugh.

    Plugin Author Sayontan Sinha

    (@sayontan)

    This is weird. The only way you wouldn’t get the protected albums is if your authentication isn’t working. The way the code is written is, it uses your Refresh Token, then, behind the scenes, it obtains an access token, then uses the access token to retrieve your albums. Now, if it isn’t able to obtain your albums, it means that it failed to obtain an access token, hence made an unauthenticated call. What happens if you open the API link I provided above in a browser where you haven’t signed in to Google? Does it give you 272 albums or 284? If the new browser gives you 272, then something is wrong with the back-end authentication code and I will need to investigate further.

    Now, from the list of 284, if you fetch the ID of an album (<gphoto:id>) and use that in the shortcode, does your album display?

    Thread Starter robkm

    (@robkm)

    The way the code is written is, it uses your Refresh Token, then, behind the scenes, it obtains an access token, then uses the access token to retrieve your albums.

    That is the way I understood it, but I wasn’t 100% positive.

    What happens if you open the API link I provided above in a browser where you haven’t signed in to Google? Does it give you 272 albums or 284?

    If I go to the API link not logged in, I get 284 albums, but that is because I used the Event Gallery tool to make those 12 albums public, so they now show and are marked as <rights type='text'>public</rights>.

    I just created album 285 and it is not listed at the API link when I’m NOT logged in. When I am logged in, I see it listed but again it says <rights type=’text’>protected</rights>.

    Now, from the list of 284, if you fetch the ID of an album (<gphoto:id>) and use that in the shortcode, does your album display?

    I was able to get the album ID from the Event Gallery tool, which is what the <gphoto:id> is, so nothing changes on that front.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Can you confirm that your Refresh Token has been saved in Photonic → Settings → Picasa → Picasa Settings?

    Also, if you obtain the ID for the 285th album (non-public) that you created from the API link (in a browser where you have signed into Google), and then use the ID in the shortcode, does your album show up?

    Thread Starter robkm

    (@robkm)

    Yes, I can confirm the refresh token is saved.

    The ID in the API link is the Album ID, which I already have in the shortcode…

    [gallery type='picasa' user_id='My ID' kind='photo' album='6384967383312460833']

    Plugin Author Sayontan Sinha

    (@sayontan)

    Does your album show up with this shortcode?

    Thread Starter robkm

    (@robkm)

    Sorry, no it does not.

    Thread Starter robkm

    (@robkm)

    This is the page (https://bit.ly/2k9y5AH) where the album is embedded, if it helps.

    • This reply was modified 7 years, 9 months ago by robkm.
    Plugin Author Sayontan Sinha

    (@sayontan)

    Then my guess is that the back-end authentication is not kicking in. IIRC, you use a caching plugin. Is it possible that it is caching an older access token (Photonic saves the token in an option), and thereby not using the Refresh Token to get a new access token? Access tokens have a life of around 30 min (or 60 min – can’t remember which).

    Thread Starter robkm

    (@robkm)

    Yea, I fixed it! I was just reading another topic here where you were helping someone to properly implement the shortcode, and I noticed this – (protection=’none’) – in the shortcode. I added that to mine and it is now showing album 285, which is protected!

    Thank you for the time you spent trying to help me figure this out, I really do appreciate it!

    • This reply was modified 7 years, 9 months ago by robkm.
    Plugin Author Sayontan Sinha

    (@sayontan)

    Good to know, but I think the right flag is access='public,protected,private' … unless I have messed something up! The protection='none' flag is to indicate that you don’t want any password (authkey) prompt for protected albums.

    Thread Starter robkm

    (@robkm)

    I just tried access='public,protected,private' and the album still shows, so I guess they both work..lol.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Is there a Max threshold for Google Photos Album ID Finder?’ is closed to new replies.