Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizer: Instagram Authentication does not work #14137

Closed
sirbrillig opened this issue May 16, 2017 · 7 comments
Closed

Customizer: Instagram Authentication does not work #14137

sirbrillig opened this issue May 16, 2017 · 7 comments
Labels
[Feature] Customizer The site customizer for traditional, non-block themes. [Type] Bug When a feature is broken and / or not performing as intended

Comments

@sirbrillig
Copy link
Member

Steps to reproduce

  1. Visit the Customizer from within Calypso (the /customize URL).
  2. Add an Instagram widget.
  3. Click "Save and Publish" (this is required for OAuth; can't recall why).
  4. In the Instagram widget control panel, click the "Authorize Instagram Access" button.

What I expected

To be redirected to the Instagram login page. (This is the OAuth behavior that occurs if using the Customizer in wp-admin.)

What happened instead

A blank Calypso page is displayed. In the JavaScript console, the following error appears:

Refused to display 'https://www.instagram.com/accounts/login/?force_classic_login=&next=/oauth/…agram%2526instagram_widget_id%3D3%2526is_customizer%3D1%26state%3D...' in a frame because it set 'X-Frame-Options' to 'sameorigin'.`

Browser / OS version

Mac OS 10.12.4
Chrome 57.0.2987.133

@sirbrillig sirbrillig added [Feature] Customizer The site customizer for traditional, non-block themes. [Type] Bug When a feature is broken and / or not performing as intended labels May 16, 2017
@sirbrillig
Copy link
Member Author

Same as #12292 but I think it needs to be solved here.

@sirbrillig
Copy link
Member Author

Should be fixed by r156261-wpcom

@kathrynwp
Copy link
Member

@sirbrillig Unfortunately still getting reports of the Instagram connection being broken in the Customizer's widget area.

Three reports in this thread: https://premium-themes.forums.wordpress.com/topic/instagram-widget-not-working-3

Description of issue from a premium-theme seller on WordPress.com:

I've just tested Instagram widget and it works fine on the Widget page in WP Admin but it does not work in the Customizer.

When I click on the Authorize Instagram Access button, it just reloads the Customizer and does not save the widget in the widget area.

@kathrynwp kathrynwp reopened this Jun 2, 2017
@sirbrillig
Copy link
Member Author

sirbrillig commented Jun 2, 2017

@kathrynwp are you sure the user has clicked "Save and Publish" before they clicked "Authorize"? Otherwise it will just reload the Customizer as they described.

screen_shot_2017-06-02_at_9_53_26_am

It's written in the instructions, but it's horrible UX and I get it wrong quite a lot myself. We have an issue for the customization team to improve it in the customization repo at issue 94.

@kathrynwp
Copy link
Member

Oh wow. :) I bet not, I'll ask. I just tested myself moments ago, and didn't notice that you had to click the Save button before authorizing. When I just retested now and included that step, it worked, so I think you're right and it must be that missing step that's the problem.

@kathrynwp
Copy link
Member

It's super easy to overlook the current instructions. Until we have a new flow, what about putting some of the text in bold and rewording it slightly, like:

Important: You must first click "Save & Publish" to activate this widget, before connecting your account. After saving the widget, click the button below to authorize your Instagram account.

@sirbrillig
Copy link
Member Author

Thanks. Hopefully this will improve the experience slightly until a better flow can be implemented.

screen shot 2017-06-02 at 10 24 11 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Customizer The site customizer for traditional, non-block themes. [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

No branches or pull requests

2 participants