<?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>mFabrik - mobile sites, apps, HTML5 and CMS software development &#187; facebook</title>
	<atom:link href="http://blog.mfabrik.com/tag/facebook/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mfabrik.com</link>
	<description>Freedom delivered.</description>
	<lastBuildDate>Wed, 03 Aug 2011 09:47:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Integrating Facebook with Plone</title>
		<link>http://blog.mfabrik.com/2011/04/18/integrating-facebook-with-plone/</link>
		<comments>http://blog.mfabrik.com/2011/04/18/integrating-facebook-with-plone/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 12:17:00 +0000</pubDate>
		<dc:creator>Mikko Ohtamaa</dc:creator>
				<category><![CDATA[plone]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[like]]></category>
		<category><![CDATA[opengraph]]></category>

		<guid isPermaLink="false">http://blog.mfabrik.com/?p=1236</guid>
		<description><![CDATA[This blog post shows how to integrate some of Facebook features to your Plone site programmatically. See the add-on http://plone.org/products/facebook-like-button for non-programming integration. Like button Here is an example which creates a Like button pointing to the current page. Page template code: &#60;iframe tal:attributes="src string:${view/getFBURL}" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:227px; height:50px;" allowTransparency="true"&#62;&#60;/iframe&#62; View code import [...]]]></description>
			<content:encoded><![CDATA[<div id="introduction">
<p>This blog post shows how to integrate some of Facebook features to your Plone site programmatically.</p>
<p>See the add-on</p>
<ul>
<li><a href="http://plone.org/products/facebook-like-button">http://plone.org/products/facebook-like-button</a></li>
</ul>
<p>for non-programming integration.</p>
</div>
<div id="like-button">
<h2>Like button</h2>
<p>Here is an example which creates a Like button pointing to the current page.</p>
<p>Page template code:</p>
<pre>&lt;iframe tal:attributes="src string:${view/getFBURL}" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:227px; height:50px;" allowTransparency="true"&gt;&lt;/iframe&gt;</pre>
<p>View code</p>
<pre>import urllib

...

class YourView(BrowserView):

    ...

        def getQuotedURL(self):
            url = self.context.absolute_url()
            url = urllib.quote(url)
            return url

        def getFBURL(self):
            base = "http://www.facebook.com/plugins/like.php?href=%(url)s&amp;layout=standardt&amp;show_faces=false&amp;width=227&amp;action=like&amp;colorscheme=light&amp;height=50"
            url = base % {"url" : self.getQuotedURL() }
            return url</pre>
<div>
<p>Note</p>
<p>If you are using Like button you should also add OpenGraph metadata to your pages as described below.</p>
</div>
<p>More info</p>
<ul>
<li><a href="http://developers.facebook.com/docs/reference/plugins/like/">http://developers.facebook.com/docs/reference/plugins/like/</a></li>
</ul>
</div>
<div id="opengraph-metadata">
<h2>OpenGraph metadata</h2>
<p>OpenGraph is Facebook page metadata protocol. You&#8217;ll insert extra &lt;meta&gt; tags on the page which will give additional information about the page to be displayed with Facebook links.</p>
<ul>
<li><a href="http://developers.facebook.com/docs/opengraph/">http://developers.facebook.com/docs/opengraph/</a></li>
</ul>
<p>Below is an example of filling in Facebook metadata</p>
<ul>
<li>Using content description in Facebook</li>
<li>Having main image</li>
<li>Having location</li>
<li>Having contact info</li>
</ul>
<p>Example</p>
<pre>&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
    lang="en"
    metal:use-macro="here/main_template/macros/master"
    i18n:domain="saariselka.app"
    &gt;

     &lt;tal:comment replace="nothing"&gt;
     &lt;!--

              We will insert this HTML to &lt;head&gt; section,
              "head_slot", defined by Plone's main_template.pt

     --&gt;
    &lt;/tal:comment&gt;

    &lt;tal:facebook-opengraph metal:fill-slot="head_slot" &gt;

        &lt;meta property="og:description" tal:attributes="content context/Description"/&gt;
        &lt;meta property="og:type" content="hotel"/&gt;

        &lt;tal:comment replace="nothing"&gt;
             &lt;!--

                      Fill in geo info if available.
             --&gt;
        &lt;/tal:comment&gt;
        &lt;tal:has-location omit-tag="" tal:define="lat view/data/Latitude|nothing; long view/data/Longitude|nothing;" tal:condition="lat"&gt;
              &lt;meta property="og:latitude" tal:attributes="content lat"/&gt;
              &lt;meta property="og:longitude" tal:attributes="content long"/&gt;
        &lt;/tal:has-location&gt;

        &lt;tal:comment replace="nothing"&gt;
             &lt;!--

                      Fill in contact info.
             --&gt;
        &lt;/tal:comment&gt;
        &lt;meta property="og:email" content="xxx@yoursite.com"/&gt;
        &lt;meta property="og:phone_number" content="+ 358 123 1234"/&gt;

        &lt;tal:comment replace="nothing"&gt;
             &lt;!--

                      URL to 70 px wide image used by Facebook as the news item splash image.

                      Note: Facebook resized the image automatically.

             --&gt;
        &lt;/tal:comment&gt;
        &lt;tal:has-image omit-tag="" condition="view/main_image"&gt;
              &lt;meta property="og:image" tal:attributes="content view/main_image"/&gt;
        &lt;/tal:has-image&gt;

        &lt;tal:comment replace="nothing"&gt;
             &lt;!-- Facebook admins is a compulsory field. Put here the side admin Facebook id(s), comma separated

http://apps.facebook.com/whatismyid

             --&gt;
        &lt;/tal:comment&gt;
        &lt;meta property="fb:admins" content="123123" /&gt;

    &lt;/tal:facebook-opengraph&gt;</pre>
</div>
<p class="signature">
<a href="http://mfabrik.com/@@zoho-contact-form"><img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/mfabrik-24.png"></a> <a href="http://mfabrik.com/@@zoho-contact-form">Get developers</a> <a href="http://feeds.feedburner.com/mFabrikWebAndMobileDevelopment" rel="alternate" type="application/rss+xml"><img valign="middle" src="http://www.feedburner.com/fb/images/pub/feed-icon16x16.png" alt="" style="vertical-align:middle;border:0"/></a> <a href="http://feeds.feedburner.com/mFabrikWebAndMobileDevelopment" rel="alternate" type="application/rss+xml">Subscribe mFabrik blog in a reader</a> <a href="http://twitter.com/mfabrik"> <img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/twitter-24.png"></a> <a href="http://twitter.com/moo9000">Follow me on Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mfabrik.com/2011/04/18/integrating-facebook-with-plone/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Facebook requests&#8230;</title>
		<link>http://blog.mfabrik.com/2008/08/14/facebook-requests/</link>
		<comments>http://blog.mfabrik.com/2008/08/14/facebook-requests/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 00:03:38 +0000</pubDate>
		<dc:creator>Mikko Ohtamaa</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[capture]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[grab]]></category>
		<category><![CDATA[integer]]></category>
		<category><![CDATA[overflow]]></category>
		<category><![CDATA[requests]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[screengrab]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[short]]></category>
		<category><![CDATA[ int]]></category>

		<guid isPermaLink="false">http://blog.redinnovation.com/?p=59</guid>
		<description><![CDATA[I love you all guys. I just learnt that Firefox web page screen capture tools (any of them) can&#8217;t take web page screenshots higher than short 16-bit interger (32768) pixels. Crash crash crash. But I hope I am alone with my problem. So, thanks for being so supportive&#8230; and it&#8217;s not fully rendered (over 250 [...]]]></description>
			<content:encoded><![CDATA[<p>I love you all guys.</p>
<p>I just learnt that Firefox web page screen capture tools (any of them) can&#8217;t take web page screenshots higher than short 16-bit interger (32768) pixels. Crash crash crash. But I hope I am alone with my problem.</p>
<p>So, thanks for being so supportive&#8230; and it&#8217;s not fully rendered (over 250 of them), since after 3200 the image was cut. Excuse me if I am not willing to support your cause.</p>
<p><a href="http://blog.redinnovation.com/wp-content/uploads/2008/08/requests.png"><img class="alignnone size-medium wp-image-58" title="requests" src="http://blog.redinnovation.com/wp-content/uploads/2008/08/requests-16x300.png" alt="Facebook requetss" width="16" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mfabrik.com/2008/08/14/facebook-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

