<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>homepagebewertung.de &#187; @anywhere</title>
	<atom:link href="http://www.homepagebewertung.de/tag/anywhere/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.homepagebewertung.de</link>
	<description>WebNews, WebTec und mehr</description>
	<lastBuildDate>Fri, 18 Jun 2010 06:13:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Einbinden von Facebooks neuem &#8220;Like&#8221;-Button in WordPress -&gt; ohne Plugin</title>
		<link>http://www.homepagebewertung.de/2010/05/14/einbinden-von-facebooks-neuem-like-button-in-wordpress-ohne-plugin/</link>
		<comments>http://www.homepagebewertung.de/2010/05/14/einbinden-von-facebooks-neuem-like-button-in-wordpress-ohne-plugin/#comments</comments>
		<pubDate>Fri, 14 May 2010 11:19:50 +0000</pubDate>
		<dc:creator>Schecke</dc:creator>
				<category><![CDATA[WebTec]]></category>
		<category><![CDATA[@anywhere]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[open graph]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.homepagebewertung.de/?p=383</guid>
		<description><![CDATA[Ich habe schon in einem älteren Artikel zum Thema Social Media Buttons beschrieben warum ich der Meinung bin man sollte nicht alles via Plugin einbinden. Seit dem hat sich einiges getan. Twitter hat @anywhere und Facebook Open Graph veröffentlicht. Beides dient der einfacheren und umfangreicheren Integration des jeweiligen Dienstes in die eigene Seite. Heute soll [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Ich habe schon in einem <a href="http://www.homepagebewertung.de/2010/02/18/buzz-tweetmeme-und-facebook-button-in-wordpress-einbinden/">älteren Artikel zum Thema Social Media Buttons</a> beschrieben warum ich der Meinung bin man sollte nicht alles via Plugin einbinden. Seit dem hat sich einiges getan. Twitter hat <a href="http://dev.twitter.com/anywhere">@anywhere</a> und Facebook <a href="http://developers.facebook.com/docs/api">Open Graph</a> veröffentlicht. Beides dient der einfacheren und umfangreicheren Integration des jeweiligen Dienstes in die eigene Seite. Heute soll es um die Einbindung des Facebook-Like-Buttons gehen.<br />
<span id="more-383"></span></p>
<h2>Facebook Like Button ohne Plugin einbinden</h2>
<p>Den Facebook Like Button kann man auf 2 Arten einbinden, via iFrame und via Facebook Javascript SDK. Ich bin selber nicht so der iFrame-Fan deshalb zeige ich euch hier die andere Variante.</p>
<p>Den Quelltext für das SDK bekommt Ihr von der Entsprechenden <a href="http://developers.facebook.com/docs/reference/javascript/">Developer-Seite</a>, dass ganze sieht dann folgendermaßen aus:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
&lt;script&gt;
  window.fbAsyncInit = function() {
    FB.init({appId: 'your app id', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
&lt;/script&gt;</pre></div></div>

<p>Der Teil sollte am besten ganz nach unten in der footer.php eures WordPress-Templates. Eine Zeile über &gt;/body&lt; Den eigentlichen Button könnt Ihr euch auch direkt von der <a href="http://developers.facebook.com/docs/reference/plugins/like">Facebook-Developer-Seite</a> erzeugen lassen.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;fb:like href=&quot;http://www.homepagebewertung.de&quot; show_faces=&quot;false&quot;&gt;&lt;/fb:like&gt;</pre></div></div>

<p>Damit Ihr immer auf den aktuellen Post von WordPress verweist, sollte der Button in die single.php des Templates und folgendermaßen abgeändert werden. (geändertes href)</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;fb:like href=&quot;&lt;?php the_permalink() ?&gt;&quot; layout=&quot;button_count&quot; show_faces=&quot;false&quot; width=&quot;150&quot;&gt;&lt;/fb:like&gt;</pre></div></div>


<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.homepagebewertung.de/2010/05/14/einbinden-von-facebooks-neuem-like-button-in-wordpress-ohne-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

