<?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>Facebook Graph API | Woody Hayday | Blog</title>
	<atom:link href="https://blog.woodylabs.com/category/code/facebook-graph-api/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.woodylabs.com</link>
	<description>An exploration of life, technology and writing</description>
	<lastBuildDate>Tue, 13 Jan 2015 15:20:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.woodylabs.com/wp-content/uploads/2015/01/cropped-woody-hayday-yosemite-glacier-point-32x32.jpg</url>
	<title>Facebook Graph API | Woody Hayday | Blog</title>
	<link>https://blog.woodylabs.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Finding Your Perfect Festival &#8211; ChooseFest.com</title>
		<link>https://blog.woodylabs.com/2012/05/finding-your-perfect-festival-choosefest-com/</link>
		
		<dc:creator><![CDATA[Woody]]></dc:creator>
		<pubDate>Tue, 22 May 2012 10:12:08 +0000</pubDate>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Facebook Graph API]]></category>
		<category><![CDATA[Looking Forward]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[Choosefest]]></category>
		<category><![CDATA[Festivals]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[StormGate]]></category>
		<guid isPermaLink="false">http://blog.woodylabs.com/?p=855</guid>

					<description><![CDATA[<p>Its official, we have opened up ChooseFest.com, so go check it out, now, what are you waiting for? Click Here! ChooseFest is all about festivals, music festivals. In short it takes your music tastes (from facebook, last.fm scrobble history, a list you type) goes through all of the line-ups (kept up to date daily!) and [&#8230;]</p>
<p>The post <a href="https://blog.woodylabs.com/2012/05/finding-your-perfect-festival-choosefest-com/">Finding Your Perfect Festival – ChooseFest.com</a> first appeared on <a href="https://blog.woodylabs.com">Woody Hayday | Blog</a>.</p><hr /><a href="https://blog.woodylabs.com">Visit Woody Haydays Blog</a><hr />]]></description>
										<content:encoded><![CDATA[<div align="center"><a href="http://www.choosefest.com"><img fetchpriority="high" decoding="async" class="aligncenter size-medium wp-image-856" title="Finding the perfect festival" src="https://blog.woodylabs.com/wp-content/uploads/2012/05/its-not-perfect-but-its-me-423x450.png" alt="" width="423" height="450" srcset="https://blog.woodylabs.com/wp-content/uploads/2012/05/its-not-perfect-but-its-me-423x450.png 423w, https://blog.woodylabs.com/wp-content/uploads/2012/05/its-not-perfect-but-its-me-963x1024.png 963w, https://blog.woodylabs.com/wp-content/uploads/2012/05/its-not-perfect-but-its-me.png 1072w" sizes="(max-width: 423px) 100vw, 423px" /></a></div>
<p style="text-align: center;">Its official, we have opened up <a title="Find a Festival" href="http://www.choosefest.com">ChooseFest.com</a>, so go check it out, now, what are you waiting for? <a href="http://www.choosefest.com">Click Here</a>!</p>
<p style="text-align: center;">ChooseFest is all about festivals, music festivals. In short it takes your music tastes (from facebook, last.fm scrobble history, a list you type) goes through all of the line-ups (kept up to date daily!) and then spits out a convenient, summarised list of all the festivals which have the bands (and singers) you particularly like at. It&#8217;s kind of a festival search engine, its kind of a music to festival matching site, but it will be a whole lot more in months to come.</p>
<h2 style="text-align: center;">What problem does it solve?</h2>
<p style="text-align: center;">Ever tried to find the festival which has the most bands you like at? It&#8217;s a nightmare. Each festival has its own &#8220;arty&#8221; site, each festival has different dates, prices, availability, not to mention they have their bands and artists in obscure orders over several web pages. All that data collating is not easy or fun. <a href="http://www.choosefest.com">ChooseFest.com</a> Makes it easy (and hopefully fun), you just stick in who you want to see and up pops your best options.</p>
<h2 style="text-align: center;">Where&#8217;s the project at?</h2>
<p style="text-align: center;">ChooseFest is a <a href="http://www.stormgate.co.uk">StormGate</a> production and you can <a href="https://www.facebook.com/pages/ChooseFest/443178029031285">find it on facebook</a> and have a go with the prototype (alpha app) @ <a href="http://www.choosefest.com">ChooseFest.com</a>. We have a few hundred users and are now soliciting feedback, it would be great to hear what you think, and at such an early stage your comments could really make a difference to us.</p>
<h2 style="text-align: center;">Want to help out?</h2>
<p style="text-align: center;">Please help us <a href="https://www.facebook.com/pages/ChooseFest/443178029031285">Spread the word</a>, share us with your friends, give us feedback! &#8211; the more people we can tell about ChooseFest the more chance there is we can make this a really, really useful tool for us all.</p><p>The post <a href="https://blog.woodylabs.com/2012/05/finding-your-perfect-festival-choosefest-com/">Finding Your Perfect Festival – ChooseFest.com</a> first appeared on <a href="https://blog.woodylabs.com">Woody Hayday | Blog</a>.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Hosting facebook Apps/Applications/iFrame Pages on 1and1 (SSL)</title>
		<link>https://blog.woodylabs.com/2011/08/hosting-facebook-appsapplicationsiframe-pages-on-1and1-ssl/</link>
					<comments>https://blog.woodylabs.com/2011/08/hosting-facebook-appsapplicationsiframe-pages-on-1and1-ssl/#comments</comments>
		
		<dc:creator><![CDATA[Woody]]></dc:creator>
		<pubDate>Wed, 31 Aug 2011 08:28:37 +0000</pubDate>
				<category><![CDATA[Facebook Graph API]]></category>
		<category><![CDATA[Facebook Pages]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[1and1]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook apps]]></category>
		<category><![CDATA[fan gating]]></category>
		<category><![CDATA[fan page]]></category>
		<category><![CDATA[ssl]]></category>
		<guid isPermaLink="false">http://blog.woodylabs.com/?p=778</guid>

					<description><![CDATA[<p>For those who run facebook fan pages you will likely know about fan gating and the importance of adding your own content to your facebook fanpage. This used to be done with the facebook static fbml app but that&#8217;s really the old way, looking forward the best way is to make its own specific app. [&#8230;]</p>
<p>The post <a href="https://blog.woodylabs.com/2011/08/hosting-facebook-appsapplicationsiframe-pages-on-1and1-ssl/">Hosting facebook Apps/Applications/iFrame Pages on 1and1 (SSL)</a> first appeared on <a href="https://blog.woodylabs.com">Woody Hayday | Blog</a>.</p><hr /><a href="https://blog.woodylabs.com">Visit Woody Haydays Blog</a><hr />]]></description>
										<content:encoded><![CDATA[<p>For those who run facebook fan pages you will likely know about fan gating and the importance of adding your own content to your facebook fanpage. This used to be done with the facebook static fbml app but that&#8217;s really the old way, looking forward the best way is to make its own specific app. There&#8217;s <a href="http://www.hyperarts.com/blog/adding-iframe-application-to-facebook-fan-page/" rel="nofollow" target="_blank">a bunch</a> of <a href="http://www.hyperarts.com/blog/facebook-secure-browsing-https-iframe-tabs-mixed-content-warnings/" rel="nofollow" target="_blank">really good stuff</a> out there about setting up your apps but none of it seems to deal with the middle level guys who don&#8217;t want to shell out time/capital setting up amazon hosting (probably a good idea either way) or don&#8217;t strictly have https for the domain, those that just need an interim/growth testing solution with their current hosts, specifically in this case 1and1.</p>
<p>You <em>can</em> host facebook apps on any host, but hosting somewhere unsecure (not accessible via https) will flag up the following prompt for anyone browsing to the page with secure browsing turned on (high proportion of fb users.) You CAN also use amazon cloud storage (S3) for free https file storage, up to a level, however you <em>cannot run server side code</em> (php/ASP.NET) without setting up a server with their EC service.</p>
<div align="center"><img decoding="async" class="aligncenter size-full wp-image-779" title="facebook-fan-page-app-creation-on-1and1-ssl" src="https://blog.woodylabs.com/wp-content/uploads/2011/08/facebook-fan-page-app-creation-on-1and1-ssl.png" alt="" width="458" height="217" srcset="https://blog.woodylabs.com/wp-content/uploads/2011/08/facebook-fan-page-app-creation-on-1and1-ssl.png 458w, https://blog.woodylabs.com/wp-content/uploads/2011/08/facebook-fan-page-app-creation-on-1and1-ssl-450x213.png 450w" sizes="(max-width: 458px) 100vw, 458px" /><br /><em>Not pretty eh</em>? What will that do to your conversion rates? Yep nothing good.</div>
<p><span id="more-778"></span></p>
<p>Its not just the mavericks either, for example brands like banana republic are still running http stuff, prompting the user with this message on loading their like-capture pages.</p>
<h3>Set up 1and1 shared hosting to host Secure SSL facebook apps/applications/tab pages</h3>
<p>So anyway here&#8217;s the cheap, quick way to hosting your facebook apps SECURELY using 1and1 shared hosting.</p>
<ol>
<li>Log onto admin.1and1.co.uk (or .com)</li>
<li>(Optional) Register a domain name which you don&#8217;t mind generically hosting your fb content. For me this is www.whfb.co.uk &#8211; this will only show up if users looked at the information for the frame, probably wont ever matter, but if you are running a whole host of different niche pages it might be worth it for simplicity/segmentation.</li>
<li>Go to domain management section and click &#8220;Shared SSL Encryption&#8221; under SSL option<br /><img decoding="async" class="aligncenter size-full wp-image-780" title="shared-ssl-for-facebook-apps-applications-1and1" src="https://blog.woodylabs.com/wp-content/uploads/2011/08/shared-ssl-for-facebook-apps-applications-1and1.png" alt="" width="364" height="83" /></li>
<li>Assign the Shared SSL Encryption to your generic domain/main domain you want to use<br /><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-781" title="assign-ssl-to-domain-for-creating-facebook-apps-secure" src="https://blog.woodylabs.com/wp-content/uploads/2011/08/assign-ssl-to-domain-for-creating-facebook-apps-secure.png" alt="" width="224" height="76" /></li>
<li>Setup a folder under your domain like you would with any facebook page, use the facebook php api to fangate or just put some html up there, bare in mind all objects referenced in what you put up should direct resources to &#8220;https&#8221; not http. That is if you reference &#8220;http://www.example.com/someimage.png&#8221;, switch the http for https (save your own copy of the file if you need to. Referencing images locally in the folder should work fine for http/https if you use the same domain.</li>
<li>Setup your facebook app (theres thousands of guides on this&#8230;) and set the following (under &#8220;Select how your app integrates with Facebook -&gt; Page Tab&#8221;)<br /><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-782" title="select-how-your-tab-app-integrates-with-facebook-http-https" src="https://blog.woodylabs.com/wp-content/uploads/2011/08/select-how-your-tab-app-integrates-with-facebook-http-https.png" alt="" width="423" height="146" /></li>
<li>Add the app to your facebook fan page and visit it, (setting it as default landing page perhaps ;)) &#8211; you should not get any security messages, if you have you need to go back and check your html is pointing to any external elements via https.</li>
</ol>
<p>Chances are if you are running 1and1 shared hosting (or any other major) then you will have SSLRelays free of charge with your package, what&#8217;s more this takes about 1 minute to setup, so test with this before you stick stuff in the cloud!</p><p>The post <a href="https://blog.woodylabs.com/2011/08/hosting-facebook-appsapplicationsiframe-pages-on-1and1-ssl/">Hosting facebook Apps/Applications/iFrame Pages on 1and1 (SSL)</a> first appeared on <a href="https://blog.woodylabs.com">Woody Hayday | Blog</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://blog.woodylabs.com/2011/08/hosting-facebook-appsapplicationsiframe-pages-on-1and1-ssl/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Facebook Graph Api &#8211; Is user a fan of page id &#8211; Using FQL and opengraph to mimic Pages.IsFan</title>
		<link>https://blog.woodylabs.com/2010/09/facebook-graph-api-is-user-a-fan-of-page-id-using-fql-and-opengraph-to-mimic-pages-isfan/</link>
					<comments>https://blog.woodylabs.com/2010/09/facebook-graph-api-is-user-a-fan-of-page-id-using-fql-and-opengraph-to-mimic-pages-isfan/#comments</comments>
		
		<dc:creator><![CDATA[Woody]]></dc:creator>
		<pubDate>Sat, 18 Sep 2010 14:14:02 +0000</pubDate>
				<category><![CDATA[Facebook Graph API]]></category>
		<category><![CDATA[Facebook Pages]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[fan gating]]></category>
		<category><![CDATA[fan page]]></category>
		<category><![CDATA[FQL]]></category>
		<guid isPermaLink="false">http://blog.woodylabs.com/?p=403</guid>

					<description><![CDATA[<p>Working with integration of Facebook Connect for authentication is mostly easy at the moment, once you have got your head around FBML etc. However as they are in between switching from the old Restful API and the new graph API there remains the odd little thing that has only a splatter of useful documentation online. [&#8230;]</p>
<p>The post <a href="https://blog.woodylabs.com/2010/09/facebook-graph-api-is-user-a-fan-of-page-id-using-fql-and-opengraph-to-mimic-pages-isfan/">Facebook Graph Api – Is user a fan of page id – Using FQL and opengraph to mimic Pages.IsFan</a> first appeared on <a href="https://blog.woodylabs.com">Woody Hayday | Blog</a>.</p><hr /><a href="https://blog.woodylabs.com">Visit Woody Haydays Blog</a><hr />]]></description>
										<content:encoded><![CDATA[<p>Working with integration of Facebook Connect for authentication is mostly easy at the moment, once you have got your head around FBML etc. However as they are in between switching from the old Restful API and the new graph API there remains the odd little thing that has only a splatter of useful documentation online. The first one of these I have come across is trying to find out if a user (who is logged in to  your site via facebook connect) is a fan of page X.</p>
<p>There is infinite uses for this &#8211; with facebook more and more integrating &#8220;likes&#8221; with their search and other stuff you will need this functionality to drive traffic from facebook. Anyway this used to be the easy case of using https://api.facebook.com/method/pages.isFan?access_token=&#8230; to get a 1 or 0 depending on whether or not the user had &#8220;fanned&#8221; the page/website/whatever.</p>
<p>But then came along the big bad Graph API, which to get this IsFan functionality is a bitch. Getting the &#8220;likes&#8221; directly works for the page owner (which confuses everything) but not for third parties, showing just the popular/main category &#8220;likes&#8221; against them (and you need extended permissions.)<br />
<span id="more-403"></span><br />
Long and short of it there&#8217;s about 5 ways to skin this cat, all of which suck except this one, in my brief, frustrated look into it. In any case this uses FQL and the Graph API call to produce a Boolean indicating whether or not the user has fanned something with id $pageID. It works, in all scenario&#8217;s for me so far.</p>
<blockquote><p>$likeID = $facebook-&gt;api(<br />
array( &#8216;method&#8217; =&gt; &#8216;fql.query&#8217;, &#8216;query&#8217; =&gt;<br />
&#8216;SELECT target_id FROM connection WHERE source_id = $userID AND target_id = $pageID&#8217; )<br />
);</p>
<div>if ( empty($likeID) ) {</div>
<div style="margin-left:20px;">// user has NOT Liked the page/whatever</div>
<div>} else {</div>
<div style="margin-left:20px;">// user HAS Liked the page/whatever</div>
<div>}</div>
</blockquote>
<p>If only facebook would update their documentation to show how easy it is to fql query from the API!</p><p>The post <a href="https://blog.woodylabs.com/2010/09/facebook-graph-api-is-user-a-fan-of-page-id-using-fql-and-opengraph-to-mimic-pages-isfan/">Facebook Graph Api – Is user a fan of page id – Using FQL and opengraph to mimic Pages.IsFan</a> first appeared on <a href="https://blog.woodylabs.com">Woody Hayday | Blog</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://blog.woodylabs.com/2010/09/facebook-graph-api-is-user-a-fan-of-page-id-using-fql-and-opengraph-to-mimic-pages-isfan/feed/</wfw:commentRss>
			<slash:comments>23</slash:comments>
		
		
			</item>
	</channel>
</rss>
