The JS SDK goes through your document once when it is initialized, to look for such elements to parse into social plugins. If you want it to also parse content that you add to the document later, you need to call FB.XFBML.parse()
.
https://developers.facebook.com/docs/reference/javascript/FB.XFBML.parse/
More Related Contents:
- Facebook JS SDK’s FB.api(‘/me’) method doesn’t return the fields I expect in Graph API v2.4+
- How to check if a user likes my Facebook Page or URL using Facebook’s API
- org.openqa.selenium.ElementNotInteractableException: Element is not reachable by keyboard: while sending text to FirstName field in Facebook
- How does Facebook disable the browser’s integrated Developer Tools?
- Safari 3rd party cookie iframe trick no longer working?
- How to identify if a webpage is being loaded inside an iframe or directly into the browser window?
- Facebook how to check if user has liked page and show content?
- Can a website know if I am running a userscript?
- How to access custom attributes from event object in React?
- Facebook “Like” button callback
- Is it possible to add a link to download a file that can only be downloaded by sharing it on Facebook?
- How to detect when facebook’s FB.init is complete
- Has Facebook sharer.php changed to no longer accept detailed parameters?
- Facebook App: localhost no longer works as app domain
- Why will jQuery not load in Facebook?
- Facebook: Unsafe JavaScript issue (document.domain values should be same)
- AngularJs and Facebook Comments
- Can you get a public Facebook page’s feed using Graph API without asking a user to allow?
- hide scrollbar and show on hover like facebook’s new chat sidebar [closed]
- How does paging in facebook javascript API work?
- Using environment variables / parameterizing config.xml
- Facebook Graph API – upload photo using JavaScript
- How to detect Facebook in-app browser?
- Facebook OAuth “Unsupported” in Chrome on iOS
- “Unsafe JavaScript attempt to access frame with URL…” error being continuously generated in Chrome webkit inspector
- How to add facebook share button on my website?
- How to add a Facebook “Like” button to an AJAX driven page
- Empty “for” loop in Facebook ajax
- FB.logout() called without an access token
- How could I change window’s location without reloading and # hack?