Embedding PPT requires Sharepoint login

Copper Contributor

I am attempting to embed a PowerPoint presentation into a page on my Weebly website.  It is successful, in that I can see the PPT presentation after I publish the page, however anyone other than me attempting to view the PPT presentation on my webpage is presented a SharePoint login prompt.  I spent a long time working with MSFT support who couldn't figure out the problem so they sent me here.  I am able to generate a link to the document that I can send to people, and I can paste a hypertext link to the file on my website which, once selected, will open the presentation, but I cannot embed the PPT presentation w/o the sharepoint login prompt.  I am trying to do this because when the presentation is embedded, people can simply view it as a presentation on my website rather than having to open the presentation in PowerPoint online, then go into presentation mode, and go through it that way (I don't want the viewer to have to know how to do all of that.)  Thank you for any suggestions. (I ultimately found Powershow.com which may end up being my solution if necessary.)

14 Replies
The reason why you are seeing the PPT and others now is proabably due to the fact you are already logged in Office 365 while others have not done the same so they are going to be asked to login in Office 365

Any way you can share the HTML you're using for the embed? Feel free to strip out your actual PowerPoint URL from it--we use embedded Office documents all the time and I've not seen this behavior before.

 

One other thing--I don't mean to insult your intelligence, but what you've described sounds pretty close to what happens if an Anonymous link isn't being used. You're sure the link you're grabbing is Anonymous?

Insult away Matt! (No insult taken).  I don't know how to create an "anonymous" embed code since it is not an option from within the PowerPoint file.  When I get an embed code, the only thing that I can change is the dimensions of the slideshow. 

 

I feel like I'm overlooking something obvious, but I did spend about an hour with MS Tech Support and they couldn't fix it, so I don't think it is so obvious that I'll feel like an idiot when I discover what it was (but maybe I will).  Anyway, here is the embed code that PPT is generating:

 

<iframe src="https://kresslawoffice-my.sharepoint.com/personal/matt_kress_kresslawoffice_onmicrosoft_com/_layouts..." width="962px" height="565px" frameborder="0">This is an embedded <a target="_blank" href="https://office.com">Microsoft Office</a> presentation, powered by <a target="_blank" href="https://office.com/webapps">Office Online</a>.</iframe>

 

Here is the regular link:

https://kresslawoffice-my.sharepoint.com/:p:/g/personal/matt_kress_kresslawoffice_onmicrosoft_com/Eb...

 

I am hopeful that someone can enlighten me as to what the heck I'm doing wrong.

 

Thank you,

 

Matt

 

Thank you Juan.  Yes, I agree.  However, I am trying to share the PowerPoint with everybody such that they don't have to login to see it.

 

Matt

Found it! You should find that this code works:

 

<iframe src="https://kresslawoffice-my.sharepoint.com/:p:/g/personal/matt_kress_kresslawoffice_onmicrosoft_com/Eb..." width="350px" height="221px" frameborder="0">This is an embedded <a target="_blank" href="https://office.com">Microsoft Office</a> presentation, powered by <a target="_blank" href="https://office.com/webapps">Office Online</a>.</iframe>

 

***TechCommunity is shortening URLs, which breaks the HTML. See attached .docx file for full reference.

 

I suspect we had two issues here:

  • First, the embed code is using the unaltered document URL, which does not allow anonymous access. When an anonymous access link is created, the URL is more of a "pathway" than a destination, so even if you've shared a document anonymously before, that specific link must be used for an anonymous user to get to the document at all. The embed code must use this anonymous access URL, or your users would be asked to authenticate.
  • Second, inserting the anonymous access URL (like the one you provided in your last post) in the embed code requires a bit knowledge of SharePoint special sauce. If you simply paste over the entire document URL generated by Office365 when you asked it for embed code, you'll likely overwrite that "&amp;action=embedview" bit. If that happens, your iFrame will be empty, so be sure you're preserving that piece when you replace the URL used in the iFrame code.

Thanks Matt, I'll give that a try.

@Matthew Kress curious if you found a solution for embedding PPTs so you can view them without logging in? 

yes Matt, did you find a solution?

@Ersoymat 

 

I was able to get this to work using what Matt Coats shared. 

 

Using the embed code from PowerPoint you will need to replace the bolded link I have below. You replace it with a public link. To get the public link In PowerPoint online go to "Share", select "Share with people" and select "Copy Link". In the text file, I attached it shows where the public link goes. Only replace the link before the "&amp;action=embedview".

 

<iframe src="https://kresslawoffice-my.sharepoint.com/:p:/g/personal/matt_kress_kresslawoffice_onmicrosoft_com/Eb..." width="350px" height="221px" frameborder="0">This is an embedded <a target="_blank" href="https://office.com">Microsoft Office</a> presentation, powered by <a target="_blank" href="https://office.com/webapps">Office Online</a>.</iframe>

@swift-matt 

I have the same problem described in this thread, but this solution is not working for me. 
Do you know if there were any changes in the past months?
Is this still working for you?

 

Thanks

This solution worked for me, using the full code in the attachment and replacing the URL with my own document shared URL.

Thank you @Matt Coats that code worked!

Can anyone help.. 

 

I have followed the above which works, but is only allowing the file to be viewed on a laptop/ computer and not on a smart phone or tablet?

 

Any suggestions as to why?

Thank you so much for your solution. It seems that the dev team have fixed the problem and let we use the embed code (with "Any one with the link can edit" permission). However I have another problem that everyone can edit my slide through embedded slideshow.
Do you have any idea about this issue?