प्रत्येक की तरह बटन कोड होगा यह अपनी अनूठी यूआरएल है है।
का संदर्भ लें: http://developers.facebook.com/docs/reference/plugins/like/
मैं php का उपयोग इसे पाने के लिए बटन कोड की तरह, एक डेटाबेस से सभी आवश्यक सापेक्ष URL खींच उन्हें पाशन और में डेटा-href परम के लिए वापसी लेखन एचटीएमएल 5 से ।
आप मैन्युअल रूप से इन लिंक को सेट कर सकते हैं या एक गतिशील प्रणाली स्थापित कर सकते हैं जैसा मैंने किया था।
एचटीएमएल 5 बटन कोड।
<div class="fb-like" data-href="'.$thepage[link1].'" data-send="false" data-layout="button_count" data-width="90" data-show-faces="false" data-font="tahoma" style="margin-left: auto; margin-right: auto; text-align: center;"></div>
<div class="fb-like" data-href="'.$thepage[link2].'" data-send="false" data-layout="button_count" data-width="90" data-show-faces="false" data-font="tahoma" style="margin-left: auto; margin-right: auto; text-align: center;"></div>
<div class="fb-like" data-href="'.$thepage[link3].'" data-send="false" data-layout="button_count" data-width="90" data-show-faces="false" data-font="tahoma" style="margin-left: auto; margin-right: auto; text-align: center;"></div>
xfbml बटन
<fb:like href="http://anotherfeed.com?link=1" send="true" width="450" show_faces="true"></fb:like>
<fb:like href="http://anotherfeed.com?link=2" send="true" width="450" show_faces="true"></fb:like>
<fb:like href="http://anotherfeed.com?link=3" send="true" width="450" show_faces="true"></fb:like>
स्रोत
2012-08-04 17:34:18
नीचे इस सवाल का निशान न करें। मैंने जवाब पोस्ट करने का समय लिया, यह एक अच्छा सवाल है। –