Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jan 30, 2017 @ 16:10
    Lee Kelleher
    0

    EmbeddedMedia config for Twitter

    Does anyone have a working config for supporting Twitter in the EmbeddedMedia.config file?

    Tim Geyssens posted a code snippet for the old Twitter, but that API endpoint has now expired.

    I'd appreciate any knowledge sharing on this.

    Also if anyone has a Facebook oEmbed config too, that'd be great!

    Thanks,
    - Lee

  • Jamie Pollock 174 posts 853 karma points c-trib
    Jan 30, 2017 @ 16:27
    Jamie Pollock
    101

    I've found this works:

      <provider name="Twitter" type="Umbraco.Web.Media.EmbedProviders.OEmbedJson, umbraco">
    <urlShemeRegex><![CDATA[twitter\.com/]]></urlShemeRegex>
    <apiEndpoint><![CDATA[https://publish.twitter.com/oembed]]></apiEndpoint>
    <requestParams type="Umbraco.Web.Media.EmbedProviders.Settings.Dictionary, umbraco"></requestParams>
    

    As for Facebook, there are couple of endpoints depending on video or post content.

    Hope this helps :)

    Thanks,
    Jamie

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jan 30, 2017 @ 16:34
    Lee Kelleher
    1

    Thanks Jamie, that's exactly what I needed. I had tried updating the apiEndpoint, but was still using the OEmbedRich provider... OEmbedJson fixes this... thank you!! #h5yr

Please Sign in or register to post replies

Write your reply to:

Draft