• Resolved schacham

    (@schacham)



    Hi Sayontan,

    I’m receiving the this error message with some old Picasa albums that were not public:

    Failed to get data. Error:
    Start tag expected, ‘<‘ not found

    Data returned by Google:
    No album found.

    They didn’t appear in the helper list, only on Picasa archives or Google photos. But when I try to change their access level, the new code created by Google Photos doesn’t help either.

    How can I show these old albuns?

    The other albums with public access are working just fine, your plug-in is beautiful.

    Thanks a lot,

    Simone

    • This topic was modified 1 month, 3 weeks ago by  schacham.
    • This topic was modified 1 month, 3 weeks ago by  schacham.

    The page I need help with: [log in to see the link]

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

    (@sayontan)

    What is the shortcode you are using?

    If you have set up authentication on your site they should appear on the helper. Can you see them here: https://picasaweb.google.com/data/feed/api/user/your-user-name?kind=album&prettyprint=true (replace your-user-name with your user name?

    Hello Sayontan,

    I’m using this:

    [gallery type="picasa" user_id='blogdafeira' album='SusanaFornariLll' kind='photo' access='public' protection='none' layout='random' caption='none' thumb_size='72' main_size='1600']

    The old plugin code used this SusanaFornariLll#Gv1sRgCJDN0Jrv_7XRYQ

    Yes, I can see them.

    Thanks!

    Simone

    Plugin Author Sayontan Sinha

    (@sayontan)

    OK, so if you click on https://picasaweb.google.com/data/feed/api/user/blogdafeira/album/SusanaFornariLll?prettyprint=true, do you see an album come up?

    Correspondingly, when you go to https://picasaweb.google.com/data/feed/api/user/blogdafeira?kind=album&prettyprint=true, what album id do you see for the SusanaFornariLll album? Can you consider using the albumid parameter and pass the album id instead of the album? So basically, can you remove album='SusanaFornariLll' and replace it with albumid='xxxxx' where xxxxx is the album id for this album.

    When I click the first link, I see the list of images of this album and if I click in the first image I can see the Google Photos album archive.

    I tried to use the albumid, but I got another error:

    Failed to get data. Error:
    Start tag expected, ‘<‘ not found

    Data returned by Google:
    Invalid entity id: AF1QipOJ1lQX85EUjQdB0wUkIKcgWs4a1l-25QKVmTNj

    Maybe I’m not taking the correct ID?
    https://get.google.com/albumarchive/116574527212938267567/album/AF1QipOJ1lQX85EUjQdB0wUkIKcgWs4a1l-25QKVmTNj?source=pwa&authKey=CJDN0Jrv_7XRYQ

    Thanks again,
    Simone

    Plugin Author Sayontan Sinha

    (@sayontan)

    No, that isn’t the ID; to get the id, look for <gphoto:id> in https://picasaweb.google.com/data/feed/api/user/blogdafeira?kind=album&prettyprint=true corresponding to your album.

    BTW, one basic question: have you set up authentication? That is essential for Picasa integration to work. Also look at this thread for the correct list of redirect URLs.

    Hello Sayontan,
    my authentication is just fine, most of Picasa albums are ok, like this: http://77.104.144.226/~feiradec/erli-fantini-na-29a-feira-de-ceramica/

    Only the ones that are not set as public don’t work. And they don’t show a <gphoto:id> either:

     <div class="entry"><h3><a href="https://picasaweb.google.com/116574527212938267567/SusanaFornariLll?authkey=Gv1sRgCJDN0Jrv_7XRYQ"><span xml:base="https://picasaweb.google.com/data/feed/api/user/blogdafeira?kind=album&prettyprint=true">Susana Fornari lll</span></a><div class="lastUpdated">sexta-feira, 22 de junho de 2018 16:59</div></h3> 
    	  <div xml:base="https://picasaweb.google.com/data/feed/api/user/blogdafeira?kind=album&prettyprint=true" class="feedEntryContent"></div></div>

    Maybe there is a way to change this status on Picasa ou Google Photos?

    Thanks a lot,

    Simone

    Plugin Author Sayontan Sinha

    (@sayontan)

    Public albums don’t need authentication. Just to confirm, do you see something populated under Photonic → Settings → Picasa → Picasa Settings → Refresh Token (for Back-end / Server-side Authentication)?

    The reason I am asking about authentication again is because you reported you don’t see the album listed in the Helper either. That is not possible if authentication is set up. Also, if the album is not public, you shouldn’t be setting access='public' in the shortcode. Instead pass access='public,protected,private'.

    Yes, you are right. The problem is probably the authentication. I was reusing the authentication from another website. When I tried to do it again, properly, Google inform me that my temp url IP is not valid for this.

    Error: invalid_request
    Invalid parameter value for redirect_uri: Raw IP addresses not allowed

    So I will have to finish this after changing DNS servers.
    Thanks a lot for your help, I’m sorry for the trouble.
    Simone

    • This reply was modified 1 month, 3 weeks ago by  schacham.
    • This reply was modified 1 month, 3 weeks ago by  schacham.

    Hello Sayontan,
    after DNS, HTTPS and authentication done, still my private albums of Picasa don’t appear on Helpers. (feiradeceramica.com.br)
    Here is an album that is not on helpers: https://photos.app.goo.gl/wN68F7AKNigTioju7
    Can I solve this with Google Photos? How can I do that?
    Thanks a lot,
    Simone

    Hello Sayontan,

    I’m trying to show these old Picasa private albums with Google Photos/Photonic.
    But although these is the album code: https://photos.app.goo.gl/wN68F7AKNigTioju7
    When I put:
    [gallery type='google' view='photos' album='wN68F7AKNigTioju7' kind='photo' access='public,protected,private' protection='none' layout='random' caption='none' thumb_size='72' main_size='1600']
    It shows all my photos:
    https://feiradeceramica.com.br/a-ceramica-de-iuri-chacham/
    Unfortunately I can’t see nothing on Helpers.

    Thanks,
    Simone

    Plugin Author Sayontan Sinha

    (@sayontan)

    Sorry, I didn’t receive an alert for your post yesterday.

    Right now you are using Picasa parameters in the Google Photos shortcode. Note that in version 1.68 (released last week) I introduced explicit support for Google Photos. Google operates two separate APIs – one for Picasa and a newer test API for Google Photos (released in May this year), each of which takes different parameters. As a result the shortcode operates a little differently for each.

    So let us go through this step by step:

    1. You have said that you have done authentication. Have you done it for Picasa, or for Google or both? Note that some additional steps have to be followed if you are setting up authentication for Google Photos. My guess is that you have done authentication for Google Photos (i.e. Photonic → Authentication → Google Photos, not Photonic → Authentication → Picasa), but I would still like to confirm.
    2. In your shortcode you have said:
      [gallery type='google' view='photos' album='wN68F7AKNigTioju7' kind='photo' access='public,protected,private' protection='none' layout='random' caption='none' thumb_size='72' main_size='1600']
      This is the Picasa syntax, and should have had type='picasa' associated with it (but it still wouldn’t work because the album id is incorrect). For Google Photos the syntax is a bit simpler:
      [gallery type='google' view='photos' album_id='xxxxx' layout='random' thumb_size='72' main_size='1600']
      See the documentation for Google Photos. The reason you are seeing all photos is that you have not passed album_id (which is the Google Photos parameter), which is why Google Photos is showing all your photos.
    3. The album link you have posted is a shared album, which is why you are able to post it here. The reason I had to support the new Google Photos API is after Google released this API, the Picasa API stopped working reliably for shared albums. Consequently I would expect them to not show up with the Picasa shortcode.
    4. You said that the Helpers are not working. Are you clicking on the Picasa helper, or the Google Photos helper? If you were checking the Picasa Helper can you try the Google Photos Helper? What is happening on the helpers? Are you getting nothing? Or are you simply not seeing this particular album? Can you tell me if any error message is showing up? Can you open your Javascript Console and check (Ctrl + Shift + I in Chrome on Windows)?
    5. If the helpers don’t work, can you go to Google directly and under “Try this API” click “Execute”? That will list out the correct album ids. Alternatively, if you put this shortcode on your page I can tell you what your album ids are:
      [gallery type='google' view='albums']

    Hello Sayontan,
    1. I did the authentication for both Picasa and Google Photos separately.
    Hey, suddenly all albums appear on Google Photos Helper! Maybe it was a propagation issue. Now the code for album_id worked just fine!
    Thanks a lot! Your plug-in made all my external albums work! And now they all look the same.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.