Within my application, a UIWebView
is utilized to display content that is generated from WordPress (HTML code sourced from embedded Facebook content). The HTML content is loaded using the method loadHMTLString:baseURL:
, with the base URL being set to the URL of the mainBundle file path due to a local CSS file. The videos causing issues have been configured to be publicly visible.
The primary issue I am encountering is that when the content includes an embedded Facebook video, it fails to display properly. Instead of the expected video appearing, there is simply a blank space in its place.
A similar problem was encountered when attempting to showcase embedded posts from Twitter or Instagram, though the nature of the problem differed slightly. In those instances, a post frame would appear without any accompanying text or image. The solution involved adding "http:" to the JavaScript file link, but this approach did not resolve the issue with Facebook videos. Additionally, attempts with WKWebView
proved unsuccessful. While searching for solutions within similar contexts, no relevant results were found.
Any assistance or guidance on this matter would be greatly appreciated.