Skip to content

Instagram Issues #15

@iuscare

Description

@iuscare

Describe the bug

I've noticed that we are unable to retrieve the width or height of Instagram Videos/Images. A dump shows:

      -_events: []
      -_eventWildcards: []
      -_behaviors: []
      -_errors: null
      -_validators: null
      -_scenario: "default"
      +id: null
      +title: null
      +type: "image"
      +url: "https://scontent-fra3-1.cdninstagram.com/v/t51.29350-15/469535103_1983700908775813_1160600726627885406_n.webp?stp=dst-jpg_tt6&_nc_cat=101&ccb=1-7&_nc_sid=18de74 ▶"
      +width: null
      +height: null

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:

      +author: verbb\socialfeeds\models\PostAuthor {#6505 ▼
    -_events: []
    -_eventWildcards: []
    -_behaviors: []
    -_errors: null
    -_validators: null
    -_scenario: "default"
    +id: null
    +username: null
    +name: null
    +url: null
    +photo: null
  }

Steps to reproduce

Craft CMS version

Craft Pro 5.5.0

Plugin version

2.0.3

Multi-site?

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions