Skip to content
Loading
Append data in div using jquery.
+1
  • Sachin Singh
    step 1. set a static url or make it null
    1. "anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v11.0" nonce="bzBNyICb">  
    2.   class="fb-page SocialMediaAccount" data-href="https://www.facebook.com/' + uri +'" data-tabs="timeline" data-width="350" data-height="350" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true">
      
  • step 2. Dynamically change url
    1. $("#btn").click(function(){  
    2. url="your url here";  
    3. $(".fb-page").data('href',"https://www.facebook.com/' + uri +'");  
    4.   
    5. });  
     
    +3
  • Ganesan C
    Hi, Please change your script append as below.
     
    1. $('.SocialMediaAccount').append(' + 'script>');  
     
    +1
  • Ganesan C

    Hi, Please refer the below link.

     

    https://developers.facebook.com/docs/plugins/page-plugin 

    https://developers.facebook.com/docs/plugins/embedded-posts

    +3