Why instagram link onebox like this?

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 Likes

My guess is it is a private account?

2 Likes

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)

2 Likes

What’s different about this photo versus others?

2 Likes

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

5 Likes

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…

4 Likes

Done via:

Example link:

9 Likes