<?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>Murten Saerbi&#039;s blog &#187; facebook</title>
	<atom:link href="http://www.murtensaerbi.be/blog/index.php/tag/facebook/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.murtensaerbi.be/blog</link>
	<description>Maarten Serneels, Actionscript 3 and golden oldies.</description>
	<lastBuildDate>Mon, 24 Oct 2011 16:25:11 +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>Increasing Facebook users</title>
		<link>http://www.murtensaerbi.be/blog/index.php/2011/10/14/increasing-facebook-users/</link>
		<comments>http://www.murtensaerbi.be/blog/index.php/2011/10/14/increasing-facebook-users/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 14:42:37 +0000</pubDate>
		<dc:creator>Murten</dc:creator>
				<category><![CDATA[facebook]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[artcore]]></category>
		<category><![CDATA[artcore society]]></category>
		<category><![CDATA[likes]]></category>
		<category><![CDATA[sharing]]></category>

		<guid isPermaLink="false">http://www.murtensaerbi.be/blog/?p=496</guid>
		<description><![CDATA[Together with two of my former collegues I have started a new agency under the name Artcore Society. We offcourse have a page on Facebook, which people can &#8220;like&#8221;. When I have some freetime I am looking into things that could increase the fanbase. Without being too braggy I know our work is more than [...]]]></description>
			<content:encoded><![CDATA[<p>Together with two of my former collegues I have started a new agency under the name <a href="http://www.artcoresociety.com" target="_blank">Artcore Society</a>. We offcourse have a <a href="https://www.facebook.com/artcoresociety" target="_blank">page on Facebook</a>, which people can &#8220;like&#8221;. When I have some freetime I am looking into things that could increase the fanbase.</p>
<p>Without being too braggy I know our work is more than decent enough to run with the big dogs: it&#8217;s just so that reaching everybody is a hard job. It&#8217;s also noteworthy that not everybody you know is a fan of your work. The trick is too find all the people that would like your work and let them like your page.</p>
<p>A few things that have helped our cause are these:</p>
<p><strong>Put it on your own website/mailsignature/msn window</strong><br />
Kind of logical, but often overlooked. Your friends and readers will only find it logical that there are links to your own company website. It&#8217;s what you do. As long as you do not jam it in their throat they will not take offence.<br />
<br/></p>
<p><strong>Invite your subscribers</strong><br />
If you have an email base which you use to send newsletters, let them know about it with a small infoblock. Most likely the receivers have Facebook and are more than happy to like your page to get more news from you.<br />
<br/></p>
<p><strong>Create an attractive page</strong><br />
Make sure your page looks okay: nice logo in the profile picture area, fangate that explains what you do and what you can offer, relevant information, well-designed and easy to understand subpages, etc&#8230; you could even ask <a href="http://www.artcoresociety.com/">us</a> to do it for you. <img src='http://www.murtensaerbi.be/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
<br/></p>
<p><strong>Ask already-likers to join in on the quest for more likes</strong><br />
Why not organize an online &#8220;contest&#8221; that asks the users to tag your brand in their pictures? It generates buzz on their wall which might lead to more likes. If people see your brand on Facebook and like the product they will like your page aswell. You could do small contests, give-aways, &#8230; the fangate (ex.: like us and get the chance&#8230;) makes sure they like the page before they see the contest information.<br />
<br/></p>
<p><strong>Make a small print ad about the page in real life</strong><br />
A small sign in your office/store reminds the people that you have a Facebook page: if they remember this while they&#8217;re browsing Facebook they might add your page to their likes.<br />
<br/><br />
The growth will offcourse depend on what kind of company/product you try to like, but these small things could already help alot. If the people don&#8217;t know about it, they won&#8217;t be able to like it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.murtensaerbi.be/blog/index.php/2011/10/14/increasing-facebook-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook fangate: a how-to with PHP</title>
		<link>http://www.murtensaerbi.be/blog/index.php/2011/09/14/facebook-fangate-a-how-to-with-php/</link>
		<comments>http://www.murtensaerbi.be/blog/index.php/2011/09/14/facebook-fangate-a-how-to-with-php/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 21:12:43 +0000</pubDate>
		<dc:creator>Murten</dc:creator>
				<category><![CDATA[facebook]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[fangate]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[like]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://www.murtensaerbi.be/blog/?p=478</guid>
		<description><![CDATA[The problem: You have some awesome content on your facebook page, but you want visitors to like your page before they can read it, aka installing a fangate! No worries, PHP is our friend and this example can be set-up in under five minutes! You can do this with javascript too, but we over at [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The problem:</strong><br />
You have some awesome content on your facebook page, but you want visitors to like your page before they can read it, aka installing a fangate! No worries, PHP is our friend and this example can be set-up in under five minutes! You can do this with javascript too, but we over at Murten Saerbi choose the PHP way.<br/><br/><br />
<strong>Woah&#8230; wait! What&#8217;s a fangate?</strong><br />
A fangate is actually just a page that checks whether a certain visitor is a fan of your page or not. Therefore this script will only work when you load it in a page. You can do this by creating a new app over on <a href="http://developers.facebook.com" target="_blank">developers.facebook.com</a> and adding the app to your page. The custom pages on Facebook are actually *just* HTML/PHP/&#8230; pages that Facebook loads into an iframe.<br/><br/>Like that it looks the content of your website is actually on Facebook inside a custom page tab.<br />
<br/><br />
<strong>The solution:</strong><br />
First you will need to download the php sdk file, you can do this over at <a href="https://github.com/facebook/php-sdk" target="_blank">GitHub</a>. Next step is to actually create a php file that you can use as the fangate page. Open up the php tags and start with the base: requiring the file we just downloaded (don&#8217;t forget to upload!) and filling in the app id and the app secret. You can find these variables on your application setting screen on <a href="http://developers.facebook.com" target="_blank">developers.facebook.com</a>. Your file should look a bit like this:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?php
&nbsp;
require <span style="color: #ff0000;">'facebook.php'</span>;
&nbsp;
$app_id = <span style="color: #ff0000;">&quot;your_app_id_here&quot;</span>; 
$app_secret = <span style="color: #ff0000;">&quot;your_app_secret_here&quot;</span>;
$facebook = <span style="color: #000000; font-weight: bold;">new</span> Facebook<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">array</span><span style="color: #66cc66;">&#40;</span>
        <span style="color: #ff0000;">'appId'</span> =<span style="color: #66cc66;">&gt;</span> $app_id,
        <span style="color: #ff0000;">'secret'</span> =<span style="color: #66cc66;">&gt;</span> $app_secret,
        <span style="color: #ff0000;">'cookie'</span> =<span style="color: #66cc66;">&gt;</span> <span style="color: #000000; font-weight: bold;">true</span>
<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>After this all we really need is a parameter that tells us if a visitor likes the page he&#8217;s viewing or not. You can find this in the signed_request object, a Facebook object that holds various information about the page and the user. Get that object and read out the page_liked parameter:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?php
$signed_request = $facebook-<span style="color: #66cc66;">&gt;</span>getSignedRequest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
$like_status = $signed_request<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;page&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;liked&quot;</span><span style="color: #66cc66;">&#93;</span>;</pre></div></div>

<p>When we have the like status inside a variable the rest is easy, a simple if statement will give us the ability to feed the visitor two content pages: one if the user doesn&#8217;t like our page yet and one if the user does like our page. That&#8217;s about it: easy peasy lemon squeezy! Just don&#8217;t forget to close the php code after the if and you&#8217;re all set:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>$like_status<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
echo <span style="color: #ff0000;">&quot;&lt;div style='margin-top:0px; position: absolute; top:0px;left:0px; width:520px; height:750px;'&gt;
    &lt;iframe src='HTTP://_THE_PAGE_THAT_NEEDS_TO_BE_SHOWN_WHEN_PEOPLE_LIKE' width='520' height='751' frameborder='0' scrolling='no'&gt;&lt;/iframe&gt;
&lt;/div&gt;&quot;</span>;
<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span>
echo <span style="color: #ff0000;">&quot;&lt;div style='margin-top:0px; position: absolute; top:0px;left:0px; width:520px; height:750px;'&gt;
  &lt;iframe src='HTTP://_THE_PAGE_THAT_NEEDS_TO_BE_SHOWN_WHEN_PEOPLE_DONT_LIKE' width='520' height='751' frameborder='0' scrolling='no'&gt;&lt;/iframe&gt;
&lt;/div&gt;&quot;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
?<span style="color: #66cc66;">&gt;</span></pre></div></div>

<p>Online you should now have atleast four files:</p>
<p>- the facebook.php file<br />
- the fangate php file (index.php for instance)<br />
- the file that people see when they&#8217;re not a fan yet<br />
- the file that people see when they&#8217;re a fan</p>
<p>It&#8217;s that easy, really: so open up your favourite texteditor and start fan-gating away!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.murtensaerbi.be/blog/index.php/2011/09/14/facebook-fangate-a-how-to-with-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fan page Facebook applications with authentication</title>
		<link>http://www.murtensaerbi.be/blog/index.php/2011/09/14/facebook-applications-how-to-get-one-on-your-fan-page-that-needs-authentication/</link>
		<comments>http://www.murtensaerbi.be/blog/index.php/2011/09/14/facebook-applications-how-to-get-one-on-your-fan-page-that-needs-authentication/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 18:44:00 +0000</pubDate>
		<dc:creator>Murten</dc:creator>
				<category><![CDATA[facebook]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[fan page]]></category>
		<category><![CDATA[javascript SDK]]></category>
		<category><![CDATA[permissions]]></category>

		<guid isPermaLink="false">http://www.murtensaerbi.be/blog/?p=459</guid>
		<description><![CDATA[The problem: Applications that run on a page (&#8220;add application to page&#8221; on the app profile page) and require authentication (certain permissions being set) don&#8217;t open the permissions panel -OR- are redirecting to the app canvas page instead of the fan page tab where your application resides after you allow permissions. Let me make that [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The problem:</strong><br />
Applications that run <strong>on a page</strong> (&#8220;add application to page&#8221; on the app profile page) and <strong>require authentication</strong> (certain permissions being set) don&#8217;t open the permissions panel -OR- are redirecting to the app canvas page instead of the fan page tab where your application resides after you allow permissions. Let me make that as clear as I can by breaking this sentence down so nobody gets lost in translation:<br/><br />
1. You have an app that runs on a <strong>page</strong> and therefore only selected the &#8220;Page tab&#8221; option in the developers panel.<br />
2. Your app needs authentication, meaning: your app requires certain <strong>permissions</strong>.<br />
3. The Permission box does not appear when you ask for permissions -OR- the permissions box does not redirect you to the page tab.<br />
<br/><br />
<strong>The solution:</strong><br />
I spent the better part of the day looking for a solution for this, without result. There are some posts about this problem, but no decent answers. What seems to be wrong is when you only select the &#8220;page tab&#8221; option in the developer panel (<a href="http://developers.facebook.com">developers.facebook.com</a> > select your app) the app doesn&#8217;t redirect to the authentication page. When you add the &#8220;Website&#8221; option however, the app does go to the authentication page!<br/><br />
The only problem now is that the redirect url is the one that you filled in in the &#8220;website&#8221; option. This is an easy fix, in your integration of your permission screen just fill in whatever page you want to redirect too like this (javascript, since I implement the page with the facebook javascript SDK):</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> APP_ID = <span style="color: #ff0000;">&quot;my_app_id_that_you_don't_get&quot;</span>;
<span style="color: #000000; font-weight: bold;">var</span> REDIRECT_URI = <span style="color: #ff0000;">&quot;YOUR_PAGE_HERE&quot;</span>;
<span style="color: #000000; font-weight: bold;">var</span> PERMS = <span style="color: #ff0000;">&quot;publish_stream&quot;</span>; <span style="color: #808080; font-style: italic;">//comma separated list, I only need publish</span></pre></div></div>

<p>Now this will only work for <em>one</em> fan page, since we hardcode the fan page in the redirect uri. if others add the application to their page they will be redirected to your page instead of their own. Totally cool for you, but not so user-friendly. Offcourse, I have a solution for that too:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> APP_ID = <span style="color: #ff0000;">&quot;my_app_id_that_you_don't_get&quot;</span>;
<span style="color: #000000; font-weight: bold;">var</span> REDIRECT_URI = document.<span style="color: #006600;">location</span>.<span style="color: #006600;">href</span>;
<span style="color: #000000; font-weight: bold;">var</span> PERMS = <span style="color: #ff0000;">&quot;publish_stream&quot;</span>;</pre></div></div>

<p>Much thanks goes out to my loyal testrabbit: <a href="http://www.artcoresociety.com">Artcore Society</a>&#8216;s own <strong>Robby Carlier</strong>.</p>
<p><strong>note:</strong> Accessing another domain from within an IFRAME is a security violation and will not be accepted by most browsers. You should disregard the last portion for now and insert the REDIRECT_URI hardcoded. I&#8217;ll look for a solution and post my findings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.murtensaerbi.be/blog/index.php/2011/09/14/facebook-applications-how-to-get-one-on-your-fan-page-that-needs-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Steven Van Hissenhoven, as3 and facebook connect</title>
		<link>http://www.murtensaerbi.be/blog/index.php/2009/10/07/steven-van-hissenhoven-as3-and-facebook-connect/</link>
		<comments>http://www.murtensaerbi.be/blog/index.php/2009/10/07/steven-van-hissenhoven-as3-and-facebook-connect/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 19:02:37 +0000</pubDate>
		<dc:creator>Murten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook connect]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[steven van hissenhoven]]></category>

		<guid isPermaLink="false">http://www.murtensaerbi.be/blog/?p=263</guid>
		<description><![CDATA[A few weeks ago adobe anounced a new ActionScript 3 Library for the Facebook API (www.adobe.com/go/facebook). Facebook and flash are two ever growing platforms and combined could make even more awesome projects so naturally Murten Saerbi went on a mission to find a client/test project to use these two puppies together. While doing the project [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago adobe anounced a new ActionScript 3 Library for the Facebook API (<a href="http://www.adobe.com/devnet/facebook">www.adobe.com/go/facebook</a>). Facebook and flash are two ever growing platforms and combined could make even more awesome projects so naturally Murten Saerbi went on a mission to find a client/test project to use these two puppies together.</p>
<p>While doing the project I kept thinking about a quick how-to to further explain how it all works.</p>
<p>Constantly delaying this however, made sure somebody beat me to it. Be sure to check out the magnificent post <a href="http://www.stevenvh.be/blog/?p=57">Adobe Flash &#038; Facebook Connect</a> by <a href="http://www.stevenvh.be/blog/">Steven Van Hissenhoven</a>. You can download the source code and view an example, I barely would have done it better myself! He even made a header about it which is a solid idea and a quick and easy test to&#8230; well&#8230; test it out.</p>
<p>Go forth, my flash-meets-facebook connect ninjas!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.murtensaerbi.be/blog/index.php/2009/10/07/steven-van-hissenhoven-as3-and-facebook-connect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

