@Roman can you add investigating this to your list (once you free us from other work)
Just pushed a fix:
https://github.com/discourse/onebox/commit/912d579ae3b1331f6dedcc9724e6c9ed0ddb289f
Will bump onebox version in discourse soon.
https://www.instagram.com/bennyblood24/p/BvRvyluBbwU
The fix is now live on meta:
Hi Sam, is Instagram oneboxing broken? Test:
https://www.instagram.com/p/BwrDFZ8AbBy/?utm_source=ig_web_button_share_sheet
You wrote
https://www.instagram.com/p/BwrDFZ8AbBy/?utm_source=ig_web_button_share_sheet
But let’s see
https://www.instagram.com/p/BwrDFZ8AbBy/
@Roman Looks like updated regex for username broke the regular Instagram links. Can you fix?
I relaxed the regexp a little bit and added an additional test to cover both cases.
https://www.instagram.com/p/BwieEVwgYZq/
https://www.instagram.com/p/BwieEVwgYZq/
https://www.instagram.com/meowed/p/Bw1WjpcDXRU/
Following up here as I’ve noticed broken Instagram oneboxes on our site…
Is this supposed to make it so that the Instagram onebox preview images no longer break? Because if so, it seems that’s not currently working for us. It may be specific to video posts (not sure as pretty much all examples on our site are videos).
See e.g. this post on our site (from just a few weeks ago): Forearm rotation clip on this blog? - #4 by Troy - Playing Technique - The Cracking the Code Forum
Same with several others. Rebuild does fix, e.g. displays like so after rebuilding the post: Black star lick HELP ME - #8 by Troy - Playing Technique - The Cracking the Code Forum
I see some video embeds above in this very topic do still work, so not sure if there’s some other variable with this only happening for certain accounts.
If this is an intentional thing from Instagram without an easy workaround, this is a good suggestion:
Basically — a daily / weekly job (not sure how long exactly the Instagram embeds expire) to run Rebake all posts matching a pattern matching https://www.instagram.com/p/ I think would do the trick.
It should only be much older posts, not a recurring thing. So a one time global rebake should fix all.
Right that’s what I thought at first, and I did a rebake on all our posts w/ Instagram links like a month or two back which I thought would fix this permanently.
But even recent posts (examples: one, two, three) now have the broken preview images again.
Hmm maybe @techAPJ could have a look.
Hey Brendan, can you verify that the setting download remote images to local is enabled on your site? Also can you make sure that download remote images threshold is satisfied on your server, i.e. your server has required percentage of minimum disk space?
Server has space, but looks like we did not have that setting enabled, I will turn it on now and run the rebake again. Thanks for the help here!
여기서 후속 보고를 드리자면, download remote images to local을 활성화하고(디스크 공간은 충분했으며) rebake를 수행한 후에도 Instagram 원박스(Onebox) 미리보기 이미지가 여전히 깨지는 문제를 발견했습니다.
수정: 이 글을 쓰면서 무슨 일이 일어나고 있는지 깨달은 것 같습니다.
새로운 Instagram 게시글에는 저희 도메인의 올바른 이미지 URL이 포함되어 있었지만, 오래된 게시글에는 만료되는 Instagram URL이 그대로 남아 있었습니다. 모든 오래된 임베드를 rebake할 때 사이트 설정인 download remote images max days old(기본값 30일)가 이 과정을 제한하고 있다는 사실을 인지하지 못했습니다.
따라서 해당 설정을 9999로 변경하고 다시 rebake를 수행했는데, 이제 정상적으로 작동하는 것 같습니다! (혹시 다른 분들께 도움이 될 수 있을지 몰라 이 러버덕 디버깅(rubber-ducking) 게시글을 남겨둡니다…)
Instagram 원박스에는 영상 재생 기능과 앨범 이미지를 별도로(또는 슬라이드로) 표시하는 기능이 없습니다. 트위터 원박스에는 두 가지 기능이 모두 있습니다. 이 부분을 개선할 수 있을 것 같습니다.
IG 정책상 불가능합니다. IG는 Facebook이 소유하고 있으며, 이 문제에 대해 매우 엄격하게 대응합니다.
그걸 몰랐어요. 감사합니다.
인스타그램 원박스 기능이 고장난 것 같습니다?
https://www.instagram.com/p/B5dTSIoJ_Fn/
넣어 보려고 하면 내에서는 작동하지 않아요.