Title: Instagram authentication issue
Last modified: January 5, 2021

---

# Instagram authentication issue

 *  [Joseph D’Souza](https://wordpress.org/support/users/dsouzaj86/)
 * (@dsouzaj86)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/instagram-authentication-issue/)
 * When trying to authenticate an Instagram account, then return link lacks the 
   correct target page and instead shows a “You’re not authorised to view this page”
   message. If I manually change the link at this point to target “photonic-auth”,
   then my token is correctly displayed and I can save it.
 * If I re-attempt the authentication, sometimes the link works ok, but often it
   does not.
 * See this screenshot which highlights the issue; [https://imgur.com/2qFgHFt](https://imgur.com/2qFgHFt)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finstagram-authentication-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/instagram-authentication-issue/#post-13866996)
 * This is not happening due to Photonic – there is probably a different plugin 
   that is stripping out some of this information from your site. Take a look at
   [the code which builds the redirection URL](https://plugins.trac.wordpress.org/browser/photonic/trunk/Admin/Authentication.php#L144).
   It explicitly sets the redirection page using `admin_url('admin.php?page=photonic-
   auth')`. This code has not changed since the last several months.
 * If you have a different plugin (typically a security plugin) that does not let
   you access URLs with `page=` appended, then that would typically cause this issue.
 *  Thread Starter [Joseph D’Souza](https://wordpress.org/support/users/dsouzaj86/)
 * (@dsouzaj86)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/instagram-authentication-issue/#post-13867093)
 * Hi,
 * Thanks for the quick response. I have no other plugins like that (I like to use
   as few plugins as possible, where appropriate). The plugins I do have are contact
   form, cache and ACF – I can’t see them doing this sort of thing.
 * Either way, I’m personally happy to workaround this. I just thought you might
   want to look into it in case there is some other incompatibility issue (I’m on
   WP 5.6, btw).
 * All the best,
    Joe

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

The topic ‘Instagram authentication issue’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Joseph D’Souza](https://wordpress.org/support/users/dsouzaj86/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/instagram-authentication-issue/#post-13867093)
 * Status: not resolved