Neden bu kadar uğraştınızı anlamadım. Şahsen ben bunu kendim için değiştirip kulanıyorum
https://github.com/nivaldomartinez/link-prevue
Yalnız paketi geliştiren kişinin herokuda açtığı bir sunucya post ediyor. Orada ngelen cevabı alıyor. O kısmı kendi sunucunuzla değiştirmeniz gerek. Backend'de sadece ufak bir bot gelen url alıp image title, url, description döndürecek.
Setinerval ve timeout tavsiye etmem şahsen. Bunlar ram'i çok şişirir.
Bu vue paketinde de kontroller mevcut. Bu sayede "loading" işlemini yenilemeyi de istemci tarafında yapıyor.
httpRequest: function(success, error) {
const http = new XMLHttpRequest()
const params = 'url=' + this.url
http.open('POST', this.apiUrl, true)
http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded')
http.onreadystatechange = function() {
if (http.readyState === 4 && http.status === 200) {
success(http.responseText)
console.log(http)
}
if (http.readyState === 4 && http.status === 500) {
error()
}
}
http.send(params)
}