I think that’s what happened to me too, I don’t know what to do
Doesn’t it incorporate?
Well, I did everything or what does this post send, but the links do not incorporate!
In my forum and here
I would like to be able to see instagram and tik toks videos and photos on my forum.
Does anyone know how i can do that. i am also willing to pay for it.
Explain us how you use this permission or this feature
The instagram_graph_user_profile permission makes it possible for your app to read the user’s user profile from it. This permission must be used to read fields in an Instagram user profile (for example, the user ID or account type). You can use this permission to read the “User” node (representing the Instagram user) and its perimeters. You may also use this permission to request insights and analytics for advertising, marketing or enhancement of your application using non-identifying or anonymized aggregate data (provided that such data cannot be de-anonymized).
Facebook asks me to record a video.
Is this broken for Instagram embeds? It was working before and sometime in the last couple of days Instagram links no longer embed.
I can’t see the oEmbed app. Instead there is ‘Instagram Basic Display’.
Is this the same thing? My app in Facebook is temporarily suspended (long story), so I can’t muck about with it to find out at the moment.
later…
I note this from oEmbed Read - Graph API - Documentation - Meta for Developers
My embedding has broken again. Will check my developer console to see if it’s anything obvious (even if it is, I might miss it!)
Well, I didn’t miss it!:
I have no idea whether this would fix the broken embeds but I went through the steps anyway.
I AM over the 11 January 2024 deadline so hope it will still be ok.
The steps were fairly simple, just about 4 checkboxes I had to tick to confirm compliance with various matters (that I’d confirmed in the past, and since nothing on my site had changed I believe it should all be fine).
Now I just got to wait a day or two for confirmation.
Hello everyone, we recently decided to allow users to embed Instagram links. We followed the instructions from this thread → created an app in meta → obtained a token → added it to Discourse OneBox. Everything went well, but the Instagram posts did not appear.
I noticed that Discourse does not correctly convert Instagram links to iframes, and then nothing happens when displaying with this iframe.
For example, link:
https:/www.instagram.com/p/DNuo51_XP5L/
was converted into this iframe:
<iframe width="" height="98" frameborder="0" data-unsanitized-src="https:/www.instagram.com/p/DNuo51_XP5L/embed" seamless="seamless" sandbox="allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation"></iframe>
and when displaying with iframe, nothing happened and there was an empty rectangle.
To fix this, I wrote this code and inserted it as a Custom JS component:
import { apiInitializer } from "discourse/lib/api";
export default apiInitializer(api => {
api.decorateCooked(($cooked) => {
$cooked[0].querySelectorAll('iframe[data-unsanitized-src]').forEach((f) => {
const u = f.getAttribute("data-unsanitized-src");
if (!u) return;
const fixed = u.replace(/^https:\//, "https://");
let host = "";
try { host = new URL(fixed).hostname; } catch (e) {}
if (host === "www.instagram.com" || host === "instagram.com") {
const permalink = fixed.replace(/\/embed\/?$/, "/");
const blockquote = document.createElement("blockquote");
blockquote.className = "instagram-media";
blockquote.setAttribute("data-instgrm-permalink", permalink);
blockquote.setAttribute("data-instgrm-version", "14");
f.replaceWith(blockquote);
if (!document.querySelector('script[src*="www.instagram.com/embed.js"]')) {
const s = document.createElement("script");
s.async = true;
s.src = "//www.instagram.com/embed.js";
document.body.appendChild(s);
} else if (window.instgrm && window.instgrm.Embeds) {
window.instgrm.Embeds.process();
}
}
});
}, { id: "instagram-iframe-to-blockquote" });
});
After that, all Instagram Embeds started displaying as intended. This code converts broken iframes into
.I hope this code will be useful to someone.