Warum sieht der Instagram-Link-Onebox so aus?

why does this instagram link onebox like this?

it also links to nowhere if I don’t use hyperlinked text (you can click on the one-boxed link above)!

the link:
https://www.instagram.com/p/B3jG277hve9/

3 „Gefällt mir“

My guess is it is a private account?

2 „Gefällt mir“

Nope, that’s not a private account. Here’s another example from a fully public post:


Wow, I posted https://www.instagram.com/p/B6gUJwDl-lQ/ but the onebox redirects to this topic itself…

(edit my post to repro this in the composer)

3 „Gefällt mir“

What’s different about this photo versus others?

2 „Gefällt mir“

It seems that some Instagram pages have a canonical link with a different url that requires login. The code in the onebox library prefers the canonical url.

For example, these are the canonical urls of the instagrams in this topic:

https://www.instagram.com/shaparakgroup.ir/p/B3jG277hve9/caption/backhand_index_pointing_right-chp-shprkh-ok_hand-black_small_square-khrt-wyzyt-hy-brsh-khs

https://www.instagram.com/dogsofinstagram/p/B6gUJwDl-lQ/caption/happy-holidays-writes-konaandcamper-misslolathegoldendoodle-camera_with_flash-by-sh

6 „Gefällt mir“

I’m getting this issue as well. Upgrading my installation now to see if it fixes.

@techAPJ can you fix this please? Basically we have to ignore canonical metadata for Instagram now…

6 „Gefällt mir“

Done via:

Example link:

https://www.instagram.com/p/B7Cz042qSxv/

10 „Gefällt mir“

Es sieht so aus, als hätten wir hier einen Rückschritt gemacht, oder Instagram hat wieder etwas geändert. Wir sind wieder nur noch bei „Login • Instagram

13 „Gefällt mir“

Seltsam, dieses Bild auf Instagram hat keine og:-Meta-Tags mehr. :grimacing: Ich konnte keine anderen finden, bei denen sie fehlen würden…

5 „Gefällt mir“

Das Seltsame ist, dass die Instagram-Onebox bei mir lokal (auf der neuesten Discourse-Version) einwandfrei funktioniert. Und ich sehe die OpenGraph-Tags (og) auch im Inkognito-Modus.

Dieses Problem lokal nachzuvollziehen wird schwierig sein… ich recherchiere weiter.

7 „Gefällt mir“

Bezieht sich das nur auf dieses eine Bild? :thinking:

3 „Gefällt mir“

Nein, ich habe mehrere Bilder von verschiedenen Accounts ausprobiert, und alle wurden lokal einwandfrei als Onebox dargestellt.

Hier ist ein Bild von vor einer Stunde von NatGeo, das lokal ebenfalls einwandfrei als Onebox angezeigt wird.

Vielleicht ist es ein geografisches Problem?

FWIW: Die Onebox-Darstellung von Instagram funktioniert auch auf discourse.codinghorror.com nicht, sodass dieses Problem nicht spezifisch für meta ist.

5 „Gefällt mir“

Vielleicht ändert der User-Agent die Antwort?

9 „Gefällt mir“

https://www.instagram.com/p/CAojxzfjO0y/

Das ist auf unserem Forum ebenfalls defekt.

1 „Gefällt mir“

Das glaube ich nicht. Wir verwenden für alle Anfragen aus der Discourse-Codebasis denselben User-Agent, wie hier zu sehen:

2 „Gefällt mir“

Bei uns hier im UK tritt das gleiche Problem jetzt auch auf.

Ich aktualisiere Instagram Onebox, um die offiziellen oEmbed-Endpunkte zu verwenden. Diese Änderung funktioniert lokal, und ich werde heute später einen Fix bereitstellen. Hoffentlich unterliegen die Instagram oEmbed-Endpunkte keinen geografischen Einschränkungen.

6 „Gefällt mir“