Embed don't load twice


#1

Hello everyone !

I’ve got few embed pages in my ionic app (facebook and twitter embed feeds, etc). When i load one embed page, i click on the back button for exit the page and i go again in the embed page it doesn’t load again…

Here is my page html


<ion-content>
        <div class="content">
          <div class="fb-page" data-href="https://www.facebook.com/raal.be/" data-tabs="timeline" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false" item-width="100%"><blockquote cite="https://www.facebook.com/raal.be/" class="fb-xfbml-parse-ignore" item-width="100%"><a href="https://www.facebook.com/raal.be/">RAAL La Louvière</a></blockquote></div>
            <div style="text-align:center;"  class="container">
                <button class="button" id="back" (click)="goback()"></button>
            </div>    
        </div>          
    </ion-content>

And the ts

export class FacebookPage {
  constructor(public platform: Platform, public navCtrl: NavController) {
    
  }

  goback() {
    this.navCtrl.pop();
  } 

  ionViewDidLoad() {
    !(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12';
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
  }
}

#2

Anyone can help please ? Is this the good way to use it ?