Embed Code

Occasional Visitor

How do we embed this code in a sharepoint site?


<a href="https://URL" class="fbo-embed" data-fbo-id="416430" data-fbo-lightbox="yes" data-fbo-width="250px" data-fbo-height="188px" data-fbo-version="1" style="max-width: 100%">Document Name</a><script async defer src="https://url.com/EmbedScriptUrl.aspx?m=redir&hid=416430"></script>


3 Replies

@agukmm If you are using SharePoint online (modern experience) then you can use Embed webpart to embed the code on SharePoint page.

ReferenceAdd content to your page using the Embed web part 


If you are SharePoint on-premise or classic experience in SharePoint online then you can use Script Editor or Content Editor webpart to embed the code on page.

Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.




Use the Embed Code web part and an iframe is required. You wither have to just put the link you want to embed or use an iframe. What you are trying to do isn't possible with the Embed Code web part as is and the solution may or may not work.


If you want to add that code...

  1. create an html document with that code inside it and store the html doc on your SharePoint site.
  2. Get the URL to the html document
  3. Embed that link in the Embed Code web part. 
    NOTE: I would say use the iframe route but it doesn't seem to work. If you just put the link it should mostly work but you may find that it doesn't do what you want it to.

The Embed Code web part is a big disappointment. It is fine for embedding videos but not for custom code snip-its. I wish Microsoft would change it but they seem more worried about the security of ignorant users... (on internal sites no less). :face_with_rolling_eyes:


Please note that if you are using an iframe, the source has to be approved in that specific site as "trusted sites" to be loaded from your SharePoint site.

Yours sincerely,
Aref Halmstrand