• Resolved toantri2242005

    (@toantri2242005)


    Previously, I successfully validated and used very well
    This morning, I discovered the error did not display the image. And I proceeded to authenticate again. But failed and received an error
    When I authenticate, I receive the following message:
    Not Acceptable!
    An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

    The author helped me solve this problem, Thank you very much

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

    (@sayontan)

    This mod_security is typically caused by your server blocking some URLs. A search on Google shows this. The right way to fix this might require the help from your web hosting – they can help you track what is being blocked.

    If your host is unable to help you you can try following the workaround documented here.

    Thread Starter toantri2242005

    (@toantri2242005)

    @sayontan
    I thank you for answering the question. However, I do authenticate the way you guide, I have encountered some difficulties as follows:

    On the left, under “Step 1 Select & authorize APIs” in the box next to “Authorize APIs”, put in https://www.googleapis.com/auth/photoslibrary.readonly https://www.googleapis.com/auth/photoslibrary.sharing https://picasaweb.google.com/data/

    I can not find: https://www.googleapis.com/auth/photoslibrary.readonly https://www.googleapis.com/auth/photoslibrary.sharing
    I can only find: https://picasaweb.google.com/data/ and then click “Authorize APIs”.
    after confirming the next steps provided to me “Refresh token” and the “Access token”. But when I copy the “Refresh token” and save it under Photonic → Settings → Google Photos → Google Photos settings → Refresh Token (for Back-end / Server-side Authentication).
    then I checked it still doesn’t work

    Plugin Author Sayontan Sinha

    (@sayontan)

    I can not find: https://www.googleapis.com/auth/photoslibrary.readonly https://www.googleapis.com/auth/photoslibrary.sharing

    You have to copy-paste those into the field where it says “Input your own scopes”

    Thread Starter toantri2242005

    (@toantri2242005)

    @sayontan
    I thank you for answering the question.
    I did as you instructed, then it shows up on the bulletin board: This application has not been verified

    Plugin Author Sayontan Sinha

    (@sayontan)

    That is fine – you can proceed even with that warning.

    If you are on Chrome, click on the link that says “Advanced”, and then proceed to the URL

    • This reply was modified 6 years, 1 month ago by Sayontan Sinha. Reason: Added clarity
    Thread Starter toantri2242005

    (@toantri2242005)

    @sayontan
    I thank you for answering the question.
    I have continued to take the next steps to receive Refresh Token. However when I entered
    Photonic –> Helpers –> Google Photo –> Find my Albums : It does not give results
    Photonic –> Helpers –> Picasa Album ID Finder —> Enter account: It does not give results
    Previously it worked normally

    Plugin Author Sayontan Sinha

    (@sayontan)

    The Picasa album finder will not work, because Google deprecated the Picasa API today.

    Did you save the refresh token in your options under Photonic → Settings → Google Photos → Refresh Token (for Back-end / Server-side Authentication)? If you have done that, this is a step that works for ALL users, so I am not sure why it wouldn’t work for you.

    What happens if you try to create a gallery via the editor, by clicking on “Add / Edit Photonic Gallery”, then select “Google Photos”?

    What happens if you simply put in a gallery this way on your page?
    [gallery type='google' view='albums']

    Can you share a URL where you have the Google Photos shortcode activated?

    Thread Starter toantri2242005

    (@toantri2242005)

    @sayontan
    I do as you guide and short code here:
    [gallery type='google' view='albums' access='all' crop_thumb='crop' columns='3' main_size='1600' thumb_size='150' popup='hide' layout='square']

    But when displaying the web, the error message is as follows:

    Failed to get data. Error:

    Request had insufficient authentication scopes.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Request had insufficient authentication scopes

    This would potentially occur if the Refresh token was generated without putting in all the scopes.

    Please ensure that you are putting in https://www.googleapis.com/auth/photoslibrary.readonly https://www.googleapis.com/auth/photoslibrary.sharing https://picasaweb.google.com/data/
    (i.e. all 3 scopes) in the scopes field before you click on the button to authorize the API.

    Thread Starter toantri2242005

    (@toantri2242005)

    @sayontan

    Thank you! I have done it perfectly

    Plugin Author Sayontan Sinha

    (@sayontan)

    Great! I am marking this resolved.

    Hello! The Picasa API Depricated in my site.

    When I try the 4 step in Authentication:

    “You will be shown what permissions are requested by your API key. Note that for Picasa authentication only the first one is shown. Google Photos requires the two additional ones. You can allow access to the apps” a wrong an error screen is displayed:

    https://www.santaquiteriahuete.com/wp-admin/admin.php?page=photonic-auth&source=google&state=a2d2510132349d4fded67472eadc2d51::%252Fwp-admin%252Fadmin.php%253Fpage%253Dphotonic-auth&code=4/2QBE-4b04fTQnjrgkkNwm4Srz69ezwoy69h4o3e_T2Vz_r3rRH39jhDTa52WgrrRzI-9d7l7SbQrFI4CrqDgeu8&scope=https://www.googleapis.com/auth/photoslibrary.readonly%20https://www.googleapis.com/auth/photoslibrary.sharing%20https://picasaweb.google.com/data/

    What’s the matter?

    Thank you a lot!

    Plugin Author Sayontan Sinha

    (@sayontan)

    @santaquiteriahuete,
    Can you start your own thread please? Also, please provide me with a screenshot of the error that you are seeing in the new thread.

    This is a resolved thread and is not actively monitored.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Google photo authentication issue’ is closed to new replies.