videojs-share icon indicating copy to clipboard operation
videojs-share copied to clipboard

Facebook share not working for external embeds

Open synergies opened this issue 6 years ago • 2 comments

Received this error when the player is embedded in other domains:

Warning
Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.

Works fine for all other social share. Any ideas on how to resolve this? Also, anyway to prevent a page refresh when pop-up for share shows up?

synergies avatar Dec 12 '18 01:12 synergies

@synergies You can try changing fbFeed to other type of sharing to Facebook - fbShare or fbButton.

On this line - https://github.com/mkhazov/videojs-share/blob/master/src/defaults.js#L16

avdeev avatar Dec 12 '18 08:12 avdeev

I tried both, but both required the fbAppId and since my Facebook app is associated with our domain anytime the player is embedded in external domain it doesn't work. Any other suggestions?

synergies avatar Dec 12 '18 15:12 synergies