• Resolved muggle

    (@muggle)


    Hello,
    I am trying to import photos from google photos into my wordpress website using photonic but it always says no albums found.

    I followed the guide available in https://aquoid.com/plugins/photonic/google-photos/#auth It was according to guide until OBTAIN TOKEN but it just shows loading bar and nothing happens. So, I followed the workaround using OAuth2.0 Playground and obtailed refresh token which was like 1/t____________________ I copied it and pasted it in the Photonic Settings.

    Then I went to Photonic > Helper > Find Album ID —-> It says No albums found.

    Please Help. Thank You ??

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

    (@sayontan)

    Are you sure you used your own client id while generating the tokens? Did you ensure that you added the right scopes to it?

    Unfortunately this is one of those scenarios where I cannot help (forum rules forbid me from getting login credentials for your site). It is also one of those scenarios which rarely occurs, if ever – I have only been unable to help one user with Google Photos so far.

    You might want to set up a test page with this sort of a shortcode over there:

    [gallery type='google' view='albums']

    Once you do that you can share the URL for me to take a look.

    Thread Starter muggle

    (@muggle)

    I set the shortcode you gave me and pasted it on this page https://whitehouse.com.np/gallery/ but still its empty and in classic editor it says No items Found

    Plugin Author Sayontan Sinha

    (@sayontan)

    Do you have a custom shortcode set for Photonic (Photonic → Settings → Generic Options → Generic Settings → Custom Shortcode)? The classic editor will show you “No items found” if you have set a custom shortcode in the options but are using the gallery shortcode to define Photonic’s galleries.

    Thread Starter muggle

    (@muggle)

    yes i set the custom shortcode to gphotos, I just replaced “gallery” in the shortcode by gphotos and its giving new error now:

    Failed to get data. Error:
    Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

    BTW Thank you for quick response and you are awesome

    Plugin Author Sayontan Sinha

    (@sayontan)

    OK – unfortunately it seems like you are the second user for whom I will not be able to make this work. I had a long discussion with another person who got this exact same error and I was unable to resolve it in spite of prolonged back-and-forth attempts.

    Try deleting your authentication credentials, i.e. delete the keys and the tokens. Then start the authentication process again (use Google OAuth Playground directly) and obtain the tokens. Make sure that when you are doing the authentication you are using your own keys and the right scopes.

    If it works, well and good. Otherwise unfortunately I don’t think the attempts to fix this will work.

    Thread Starter muggle

    (@muggle)

    okay thank you, I was also thinking maybe the error might me because of two different users. I’ll try and do as you said. I’ll Update you if anything goes well.

    Thank a lot ??

    Thread Starter muggle

    (@muggle)

    I went through all the conversation between you and steve. Also, I pasted the codes you provided in pastebin. When i pasted the first one (https://pastebin.com/Bje2vkvu) I got

    Token did not exist
    Array ( )

    and then i pasted this one (https://pastebin.com/U5c1jMbX) and i am getting

    WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 7: Failed to connect to accounts.google.com port 443: Connection refused ) ) [error_data] => Array ( ) )

    I have left the document with the second php code pasted. Check it here

    Could you help me??

    I deleted all the project then created new project and just enabled photos api and also changed the admin email to the same email as i am using the apis from.

    But still am unable to use photonic

    Unlike steve, When I try and add the photonic gallery using UI I cannot move beyond selecting the google photos. Then it just says no albums found.

    Thank you for your support. Hope we can come out of this tunnel.

    Sorry for my bad English ??

    Thread Starter muggle

    (@muggle)

    Also,
    I tries using another plugin called forminator to create forms and send data to google api and its also giving me similar issue

    Failed to connect to accounts.google.com port 443: Connection refused

    so the problem might be somewhere else or something wrong with the way of things i am doing.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Sorry, but I don’t know how to help out with this. If this was happening at my end I could have gone into the code and looked at all possible options, but here that sort of troubleshooting is just not possible. Basically the first error message you got (Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential) is a showstopper, and if your authentication was successful there is no reason why that should be coming up.

    Not sure if this will help, but it might, so let’s try it: can you try disabling SSL verification from Photonic → Settings → Generic Options → Advanced → Turn off SSL verification in calls?

    If it doesn’t work, the issue would be either in your site’s configuration, or with another plugin that is preventing the connection from occurring.

    Thread Starter muggle

    (@muggle)

    No .. i don’t think its going to work

    Bad luck i guess.. I’ll try this on a new domain with new google account and everything this weekend and see if it works.

    Thank you for all your support

    It must be some kind of silly mistake from my side

    Good night,

    Thanks a lot ??

    Thread Starter muggle

    (@muggle)

    Also maybe I should try flickr

    Thread Starter muggle

    (@muggle)

    Hey, @sayontan finally solved the problem

    It was not error with the plugin or authentication rather a error due to the website i was hosting from. I was using a free hosting (awardspace) and its free tier didn’t allow the communication with external servers or to send HTTPS requests. so, non of the apis were working.

    Thank you for your support and awesome plugin ??

    Plugin Author Sayontan Sinha

    (@sayontan)

    That is fantastic news (phew!)

    Thank you for letting me know!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Unable to make Google Photos API work’ is closed to new replies.