Skip to content

best way to save what you love

api/facebook: update video and share urls (#1531)

wukko23463d518b0f
diff --git a/api/src/processing/services/facebook.js b/api/src/processing/services/facebook.js
index 9e9d060d..9e82dbe9 100644
--- a/api/src/processing/services/facebook.js
+++ b/api/src/processing/services/facebook.js
@@ -24,9 +24,9 @@ const resolveUrl = (url, dispatcher) => {
}
export default async function({ id, shareType, shortLink, dispatcher }) {
- let url = `https://web.facebook.com/i/videos/${id}`;
+ let url = `https://www.facebook.com/reel/${id}`;
- if (shareType) url = `https://web.facebook.com/share/${shareType}/${id}`;
+ if (shareType) url = `https://www.facebook.com/share/${shareType}/${id}`;
if (shortLink) url = await resolveUrl(`https://fb.watch/${shortLink}`, dispatcher);
const html = await fetch(url, { headers, dispatcher })