How to get the Facebook share button? Now one day those codes are not showing for receiving ..
Firstly, your tags like this Define some attribute in:
& gt; & Lt; Html & gt; Xmlns = "http://www.w3.org/1999/xhtml" & gt; Xmlns: FB = "http://www.facebook.com/2008/fbml" & gt; Use this code after:
& gt; & Lt; Html & gt; Xmlns = "http://www.w3.org/1999/xhtml" & gt; Xmlns: FB = "http://www.facebook.com/2008/fbml" & gt; & Gt; & Gt; & Lt; Top & gt; & Lt; Script & gt; Src = "http://connect.facebook.net/en_US/all.js" & gt; & Lt; / Script & gt; & Gt; & Lt; Script & gt; Src = "http://static.ak.fbcdn.net/connect.php/js/FB.Share" & gt; Type = "text / javascript" & gt; & Lt; / Script & gt; & Gt; & Gt; & Lt; / Head & gt; & Gt; & Gt; & Lt; Body & gt; & Lt; Div id = "fb-root" & gt; & Lt; / Div & gt; & Gt; & Gt; & Lt; A name = "fb_share" type = "box_count" & gt; Href = "http://www.facebook.com/sharer.php" & gt; Tabindex = "- 1" & gt; Share & lt; / A & gt; & Lt; Script & gt; & Gt; & Gt; // =========== Init Javascript & gt; SDK ========================== & gt; & Gt; FB.init ({appId: 'your APP key',> status: true, cookie: true, xfbml: & gt; true}); & Gt; FB.Event.subscribe ('auth.sessionChange', & gt; function (feedback) {& gt; if (response session) {> a user has signed in, and a new cookie has been saved & Gt;} and {& gt; // user is logged out, and the cookie has been cleared & gt;}}); & Gt; & Gt; & Lt; / Script & gt; & Gt; & Gt; & Gt; & Lt; / Body & gt; & Lt; / Html & gt; By this you can add share buttons.
Comments
Post a Comment