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

Instagram renders as text #261

Open
gijsstegehuis opened this issue May 29, 2024 · 4 comments
Open

Instagram renders as text #261

gijsstegehuis opened this issue May 29, 2024 · 4 comments

Comments

@gijsstegehuis
Copy link

Bug Description

When embedding an Instagram post via URL it renders only text, not the regular Instagram embed code.

Steps to reproduce

  1. Embed any instagram post
  2. Render via {{ embeddedAsset.html }}

Expected behaviour

No response

Embedded Assets version

5.1.0

Craft CMS version

Craft Pro 5.1.2

@ttempleton
Copy link
Contributor

I recommend setting up a test directly with the Embed package, that this plugin uses to get Instagram embeds, to see if it returns any embed code when used directly. We're not doing anything special to Instagram embeds when they're loaded, but I can't rule out some other plugin-specific issue affecting Instagram embeds. When testing that, make sure to set the API key (that you previously set as the Facebook key in Embedded Assets' plugin settings) in the way described at the bottom of the Embed readme.

@gijsstegehuis
Copy link
Author

Thx! that gave me some more detailed info.
It appears to be an issue with the Facebook Graph API we're using.

When using the embed package directly it returns:
To use 'Oembed Read', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Oembed Read' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review

This message is omitted when using this plugin, so this could be improved IMO.

@ttempleton
Copy link
Contributor

Yeah, that's fair enough. Will put that on my todo list.

@laurabennett
Copy link

Also running into this issue. Instagram post is returned as a link rather than an iFrame. Will look into Facebook API key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants