<?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>Creyn &#187; Facebook</title>
	<atom:link href="http://blog.creyn.pl/tag/facebook/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.creyn.pl</link>
	<description>Programmer&#039;s notes</description>
	<lastBuildDate>Mon, 22 Aug 2016 07:00:21 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Invite your friends to your Facebook fanpage like a Dev</title>
		<link>http://blog.creyn.pl/2016/08/22/invite-your-friends-to-your-facebook-fanpage-like-a-dev/</link>
		<comments>http://blog.creyn.pl/2016/08/22/invite-your-friends-to-your-facebook-fanpage-like-a-dev/#comments</comments>
		<pubDate>Mon, 22 Aug 2016 07:00:21 +0000</pubDate>
		<dc:creator><![CDATA[creyn]]></dc:creator>
				<category><![CDATA[Around dev world]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.creyn.pl/?p=509</guid>
		<description><![CDATA[In this post I will show you a very easy way to invite all of your Facebook friends to like your Facebook fanpage. This is a little hack that will require some source code analyzing and dev skills. But after all, this is extremely easy. After I created the Facebook fanpage for this blog (you...]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;">In this post I will show you a very easy way to invite all of your Facebook friends to like your Facebook fanpage. This is a little hack that will require some source code analyzing and dev skills. But after all, this is extremely easy.</p>
<p style="text-align: justify;"><span id="more-509"></span></p>
<p style="text-align: justify;">After I created the Facebook fanpage for this blog (you can find it here: <a href="https://facebook.com/creynblog/" target="_blank">https://facebook.com/creynblog/</a>) I decided that I want to invite all of my friends to like it. I wanted them all to join me on my path as a blogger. But the default &#8220;Facebook way&#8221; is to click them one by one on the <strong>&#8220;Invite&#8221;</strong> button next to the photo. And I had a lot of friends (222). So I decided that I will use my dev skills.</p>
<p style="text-align: justify;"><div class='warning2'></p>
<p style="text-align: justify;">If you want to follow, please have in mind that this is not an official method and it worked on 2016-06-14 and maybe it isn&#8217;t working when you are reading this. This is more advanced stuff and you are doing it at your own risk.</p>
<p style="text-align: justify;"></div></p>
<p style="text-align: justify;">So first, go to the Facebook fanpage <strong>&#8220;Invite Friends&#8221;</strong> section:</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-586" src="http://blog.creyn.pl/wp-content/uploads/2016/08/f1.png" alt="f1" width="280" height="284" /></p>
<p style="text-align: justify;">Then you will see the list of your friends. Exactly 100 of your friends. So you have to scroll the list to the very bottom and as you will be doing this, you will notice that more of them are showing. So please scroll to the very bottom of the list (to have all of your friends shown). Next let&#8217;s see under the hood. I am using Chrome browser for this. So right click on the <strong>&#8220;Invite&#8221;</strong> button and choose something like <strong>&#8220;Inspect element&#8221;</strong>. The new window should open and then you can find the source code of the button:</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-587" src="http://blog.creyn.pl/wp-content/uploads/2016/08/f3.png" alt="f3" width="404" height="93" /></p>
<p style="text-align: justify;">You can see that the button has a class attribute called &#8220;<strong>uiButton</strong>&#8220;. So we can select all of the buttons using javasctipt. Open the <strong>Console</strong> tab and now you can execute some code in the context of the website. Quick look at the documentation (<a href="https://developer.chrome.com/devtools/docs/console#selecting-elements" target="_blank">https://developer.chrome.com/devtools/docs/console#selecting-elements</a>) and we can see that to get all elements with specific class we should use the &#8220;$$()&#8221; function. It will give us an array of all buttons that we want to click. So if we count them we should get number of our friends. In my case there was 218, so 4 of my friends were missing. Probably there is some &#8220;don&#8217;t invite me to the fanpage&#8221; option that they selected.</p>
<p style="text-align: justify;">And now the final step. We could execute a &#8220;clicking&#8221; action on each button. It would be exactly like we were clicking all of them manually. This is done by following script:</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-588" src="http://blog.creyn.pl/wp-content/uploads/2016/08/f4.png" alt="f4" width="281" height="25" /></p>
<p style="text-align: justify;">And after just about 1 second (on Chrome browser) all of my friends were spammed with my invitation and I was so happy seeing them accepting the invitation :)</p>
<p style="text-align: justify;">C.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creyn.pl/2016/08/22/invite-your-friends-to-your-facebook-fanpage-like-a-dev/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create Facebook fanpage for your blog</title>
		<link>http://blog.creyn.pl/2016/06/19/how-to-create-facebook-fanpage-for-your-blog/</link>
		<comments>http://blog.creyn.pl/2016/06/19/how-to-create-facebook-fanpage-for-your-blog/#comments</comments>
		<pubDate>Sun, 19 Jun 2016 18:00:10 +0000</pubDate>
		<dc:creator><![CDATA[creyn]]></dc:creator>
				<category><![CDATA[Around dev world]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://blog.creyn.pl/?p=503</guid>
		<description><![CDATA[In this short post I will show you how to create a fanpage for your blog (or any other website) on Facebook. In order to do this, you will have to have your own personal Facebook profile and then use it to create a fanpage. So please login to your personal profile on Facebook and...]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;">In this short post I will show you how to create a fanpage for your blog (or any other website) on Facebook. In order to do this, you will have to have your own personal Facebook profile and then use it to create a fanpage. So please login to your personal profile on Facebook and go to the <a href="https://web.facebook.com/pages/create" target="_blank">https://web.facebook.com/pages/create</a> site.</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-513" src="http://blog.creyn.pl/wp-content/uploads/2016/06/FB_1.png" alt="FB_1" width="880" height="612" /></p>
<p style="text-align: justify;">The first step is to choose the type for the new fanpage. For blog use the &#8220;<strong>Brand or Produc</strong>t&#8221; and then &#8220;<strong>Website</strong>&#8220;. You will have to pick a name and after clicking &#8220;<strong>Get started</strong>&#8221; the fanpage will be created.</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-515" src="http://blog.creyn.pl/wp-content/uploads/2016/06/FB_2.png" alt="FB_2" width="271" height="175" /></p>
<p style="text-align: justify;">Now you have to configure the URL of your website (in case of my blog it is: <a href="http://blog.creyn.pl" target="_blank">http://blog.creyn.pl</a>), short description and unique fanpage identifier. It will be used in the link of the fanpage. I wanted to choose &#8220;creyn&#8221; but it was already taken so I choose the &#8220;<strong>creynblog</strong>&#8220;. Now you can go directly to the fanpage of my blog by typing the &#8220;<a href="https://facebook.com/creynblog/" target="_blank">https://facebook.com/creynblog/&#8221;</a> in the browser.</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-516" src="http://blog.creyn.pl/wp-content/uploads/2016/06/FB_3.png" alt="FB_3" width="664" height="415" /></p>
<p style="text-align: justify;">On next tab you have to setup the logo. I have to play with few of my old ones. The image should be square because Facebook will crop it otherwise. The problem is that each of the logos you&#8217;ll try will be saved on your timeline and will be visible to your fans. Fortunatelly you can delete them later in the &#8220;<strong>Photos</strong>&#8221; section.</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-517" src="http://blog.creyn.pl/wp-content/uploads/2016/06/FB_4.png" alt="FB_4" width="610" height="374" /></p>
<p style="text-align: justify;">Next you can add your new fanpage to &#8220;<strong>Favourites</strong>&#8220;. I decided to do this because it is easier to go to fanpage by clicking on the link in the &#8220;<strong>Favourites</strong>&#8221; menu group. You can also skip this step.</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-518" src="http://blog.creyn.pl/wp-content/uploads/2016/06/FB_5.png" alt="FB_5" width="606" height="350" />Next tab, the &#8220;<strong>Preferred Page Audience</strong>&#8221; is a big one. You can pick a location, age and even gender for who your fanpage will be presented. There are a lot of interests that you can choose from. Tooooo many for my taste. Really, it is overwhelming. But hey. This is Facebook, they know how to promote your content. So I spend some time to pick just the two that I find fit the best: &#8220;<strong>Computer programming</strong>&#8221; and &#8220;<strong>Photography</strong>&#8220;. Fortunatelly you can change it later (in the &#8220;<strong>Settings &gt; Preferred Page Audience</strong>&#8221; section of the fanpage).</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-519" src="http://blog.creyn.pl/wp-content/uploads/2016/06/FB_6.png" alt="FB_6" width="477" height="452" /></p>
<p style="text-align: justify;">And this is it. Your new Facebook fanpage is created and configured. Of course you can tweek it later and the number of available settings is huge. Yoy can now explore it and spend some time getting familiar with how it works. Please go and have fun with it :)</p>
<p style="text-align: justify;">I am inviting you to go to my fanpage here: <a href="https://facebook.com/creynblog/" target="_blank">https://facebook.com/creynblog/</a>. I would be honored if you like my fanpage, please say hallo and comment that you came directly from the blog :)</p>
<p align="center"><iframe width="340" height="214" style="border: none; overflow: hidden;" src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fcreynblog%2F&amp;tabs&amp;width=340&amp;height=214&amp;small_header=false&amp;adapt_container_width=true&amp;hide_cover=false&amp;show_facepile=true&amp;appId" scrolling="no" frameborder="0" allowtransparency="true"></iframe></p>
<p style="text-align: justify;">C.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creyn.pl/2016/06/19/how-to-create-facebook-fanpage-for-your-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
