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 3945 posts 15163 karma points MVP 10x 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 172 posts 846 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 3945 posts 15163 karma points MVP 10x 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies