Loading Facebook fb:profile-pic via AJAX in Facebook Connect site

后端 未结 3 1085
悲&欢浪女
悲&欢浪女 2021-02-09 18:41

After a page loads, I\'m making an AJAX request to pull down an HTML chunk that contains tags representing a Facebook user profile picture. I append the result to a point in t

3条回答
  •  甜味超标
    2021-02-09 19:25

    I'm using the Microsoft-Web-Helpers with MVC3 (which include facebook helpers)

    the razor syntax

     @Facebook.GetInitializationScripts()
    

    ouputs

    
    

    So I needed to call

    window.fbAsyncInit(); 
    

    To re-parse the facebook content.

提交回复
热议问题