Embedding instagram webpage inside an iframe

前端 未结 3 1666
旧时难觅i
旧时难觅i 2021-02-01 11:28

I am getting this error:

Refused to display \'http://instagram.com/p/page/\' in a frame because it set \'X-Frame-Options\' to \'SAMEORIGIN\'.

3条回答
  •  有刺的猬
    2021-02-01 12:03

    First of all Instagram let you embed the shares you did. All you have to do is

     
    1-open instagram from your web browser
    2-click any share you have 
    3-at right bottom there is hidden menu with shape of ... (3 dot) click it 
    4-select second menu which is embed to website
    5-click copy link from the next page  and use that code to use instagram embeded link at your page 
    

    also if you find it difficult or you want the pure code here is all you have to do use below code with your own url

提交回复
热议问题