ashhitch / wp-graphql-yoast-seo

This is an extension to the WPGraphQL plugin for Yoast SEO
GNU General Public License v3.0
216 stars 49 forks source link

Yoast Config Data (socials) - plugin is not updated to the newest Yoast data structure #138

Closed code-runner92 closed 1 year ago

code-runner92 commented 2 years ago

Yoast Version 17.7.1

Yoast provided individual inputs for specific social platforms:

Screenshot 2022-06-27 at 22 23 04

and it was reflected in this graphQL plugin:

social {
    facebook {
        url
        defaultImage {
            mediaItemUrl
        }
    }
    instagram {
        url
    }
    linkedIn {
        url
    }
    mySpace {
        url
    }
    pinterest {
        url
        metaTag
    }
    twitter {
        cardType
        username
    }
    wikipedia {
        url
    }
    youTube {
        url
    }
}

Yoast Version 19.1

Yoast provides named inputs only for Facebook and Twitter. All the rest are platform-agnostic.

Screenshot 2022-06-27 at 22 24 24

⚠️ You can fetch Facebook and Twitter data with following query but it's not possible to get the rest of fields. ⚠️

social {
    facebook {
        url
        defaultImage {
            mediaItemUrl
        }
    }
    twitter {
        cardType
        username
    }
}
ashhitch commented 1 year ago

Sorry about the delay in getting this done. v4.19.0 contains these profiles