Title: Obtain Token Problem
Last modified: October 23, 2020

---

# Obtain Token Problem

 *  Resolved [timodotcomm](https://wordpress.org/support/users/timodotcomm/)
 * (@timodotcomm)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/obtain-token-problem/)
 * I already do follow the solution about the problem during obtain token, but i
   found something error while put this :
 * [https://www.googleapis.com/auth/photoslibrary.readonly](https://www.googleapis.com/auth/photoslibrary.readonly)
   
   [https://www.googleapis.com/auth/photoslibrary.sharing](https://www.googleapis.com/auth/photoslibrary.sharing)
 * already click the setting icon and inser ID and secret but after click Authorize
   API’s the error like this :
 * Error 400: redirect_uri_mismatch
    The redirect URI in the request, [https://developers.google.com/oauthplayground](https://developers.google.com/oauthplayground),
   does not match the ones authorized for the OAuth client. To update the authorized
   redirect URIs, visit: [https://console.developers.google.com/apis/credentials/oauthclient/$](https://console.developers.google.com/apis/credentials/oauthclient/$){
   your_client_id}?project=${your_project_number}
 * What is wrong ?
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fobtain-token-problem%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/obtain-token-problem/#post-13572679)
 * Please [see step 7 under “Creating a Client ID”](https://aquoid.com/plugins/photonic/google-photos/#api-key).
   You shouldn’t be needing a redirect URL if you are using the “Desktop app” option.
   Additionally, if you are using the “Desktop app” option, you will not need to
   go to the OAuth Playground.
 * If for some reason you are unable to use the “Desktop app” option and are using
   the “Web Application” option, you can get the redirect URIs from _Photonic → 
   Settings → Google Photos → Google Photos Settings → Google Client ID_.
 *  Thread Starter [timodotcomm](https://wordpress.org/support/users/timodotcomm/)
 * (@timodotcomm)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/obtain-token-problem/#post-13574691)
 * Desktop app give me mismatch error so i use web application on credential creation,
   and insert the Redirect URI. Authentication successfully but obtain token not
   working (keep loading never end)
 * What should i do ?
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/obtain-token-problem/#post-13575969)
 * Please see if this thread solves your problem: [https://wordpress.org/support/topic/unable-to-get-token-google/#post-13430257](https://wordpress.org/support/topic/unable-to-get-token-google/#post-13430257).
   Alternatively, see if you can install [this plugin](https://wordpress.org/plugins/enable-jquery-migrate-helper/).
 *  Thread Starter [timodotcomm](https://wordpress.org/support/users/timodotcomm/)
 * (@timodotcomm)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/obtain-token-problem/#post-13579087)
 * Thank you ! the plugin that just installed fixed it.
    Your photonic plugin is
   awesome and i really glad that it works so great.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Obtain Token Problem’ is closed to new replies.

 * ![](https://ps.w.org/photonic/assets/icon.svg?rev=1972449)
 * [Photonic Gallery & Lightbox for Flickr, SmugMug & Others](https://wordpress.org/plugins/photonic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photonic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photonic/)
 * [Active Topics](https://wordpress.org/support/plugin/photonic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photonic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photonic/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [timodotcomm](https://wordpress.org/support/users/timodotcomm/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/obtain-token-problem/#post-13579087)
 * Status: resolved