-
-
Notifications
You must be signed in to change notification settings - Fork 1
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 Issues #15
Comments
I don't believe we have access via their API to get dimensions. See docs. The author things are coming through for me as well. What's your Source Type? |
Hi Verbb, Thank you for your quick response. Depending on the source type and provider, the media (videos) in iframes have different dimensions (Facebook Shorts, Instagram Reels, Facebook Videos, Instagram Posts). This means I can't set a fixed aspect ratio for the iframes, as this would result in only seeing partial content in the previews, and sometimes the video play button isn't even visible anymore. Do you have any ideas for an elegant solution, possibly using CSS? Regarding the author object: it appears to be empty only for Instagram Posts/Reels from other accounts that use a hashtag we're tracking in their posts. These profiles are public though. Below is the complete post object of an affected entry.
|
I typically use a responsive aspect ratio helper, which I agree isn't 100% foolproof, but does deal with most cases. The reason I asked about the Source Type, is I was thinking it could be related to that, as there is specific handling for each type of content you want to pull through. Looks like the API endpoints recent_media doesn't support For Profile Posts though, that's certainly working for me. |
Describe the bug
I've noticed that we are unable to retrieve the width or height of Instagram Videos/Images. A dump shows:
Additionally, the data attachments object lacks width and height properties. Furthermore, I've observed that the author object contains mostly null values, even when the post in question comes from a public Instagram profile and is tagged with a tracked tag:
Steps to reproduce
Craft CMS version
Craft Pro 5.5.0
Plugin version
2.0.3
Multi-site?
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: