<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: Magento Discount Coupon Code for Facebook Likes	</title>
	<atom:link href="https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/</link>
	<description>gaiterjones</description>
	<lastBuildDate>Thu, 17 Aug 2017 00:09:30 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>
	<item>
		<title>
		By: Bob		</title>
		<link>https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-273565</link>

		<dc:creator><![CDATA[Bob]]></dc:creator>
		<pubDate>Thu, 17 Aug 2017 00:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=741#comment-273565</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-271349&quot;&gt;PAJ&lt;/a&gt;.

That&#039;s a shame. I was looking for an App that worked exactly as you had it originally. No change in hell that this will ever get updated?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-271349">PAJ</a>.</p>
<p>That&#8217;s a shame. I was looking for an App that worked exactly as you had it originally. No change in hell that this will ever get updated?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: PAJ		</title>
		<link>https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-271349</link>

		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Sat, 16 May 2015 14:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=741#comment-271349</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-253899&quot;&gt;Lou&lt;/a&gt;.

I dont plan to update this module any time soon, sorry. Also Facebook will ban applications that require a like as an incentive for something, so it is likely that this app would not pass facebooks standards anymore. Eventually I will get around to rewriting all my apps to support the new facebook SDK and PHP 5.5+ but at the moment I do not have the time to look at it.

]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-253899">Lou</a>.</p>
<p>I dont plan to update this module any time soon, sorry. Also Facebook will ban applications that require a like as an incentive for something, so it is likely that this app would not pass facebooks standards anymore. Eventually I will get around to rewriting all my apps to support the new facebook SDK and PHP 5.5+ but at the moment I do not have the time to look at it.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Lou		</title>
		<link>https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-253899</link>

		<dc:creator><![CDATA[Lou]]></dc:creator>
		<pubDate>Sun, 15 Mar 2015 19:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=741#comment-253899</guid>

					<description><![CDATA[Your extensions looks really good but after setting up Fb App , the sql 
With standalone true and debug on , I have the following php error with different php version 5.3 to 5.5 , do you have any update of your extension
changing the php error level doesnt change , still have this issue :-( and even i like the page the coupon discountvoucher1.png come back

Thanks if you could provide some help
(
    [type] =&#062; 2048
    [message] =&#062; Non-static method applicationCredentials::load() should not be called statically, assuming $this from incompatible context
    [file] =&#062; /var/www/html/test/config/applicationConfig.php
    [line] =&#062; 139
)
(
    [type] =&#062; 2048
    [message] =&#062; Non-static method applicationCredentials::load() should not be called statically, assuming $this from incompatible context
    [file] =&#062; /var/www/html/test/config/applicationConfig.php
    [line] =&#062; 139
)
(
    [type] =&#062; 8
    [message] =&#062; Undefined index: signed_request
    [file] =&#062; /var/www/html/test/php/class.DecodeSignedLikeRequest.php
    [line] =&#062; 43
)
(
    [type] =&#062; 8
    [message] =&#062; Undefined offset: 1
    [file] =&#062; /var/www/html/test/php/class.DecodeSignedLikeRequest.php
    [line] =&#062; 60
)
(
    [type] =&#062; 8
    [message] =&#062; Undefined index: discountCodeMessage
    [file] =&#062; /var/www/html/test/php/class.Application.php
    [line] =&#062; 214
)
(
    [type] =&#062; 2048
    [message] =&#062; Non-static method applicationCredentials::load() should not be called statically, assuming $this from incompatible context
    [file] =&#062; /var/www/html/test/config/applicationConfig.php
    [line] =&#062; 139
)
(
    [type] =&#062; 2048
    [message] =&#062; Non-static method PageMainData::loadConfig() should not be called statically, assuming $this from incompatible context
    [file] =&#062; /var/www/html/test/php/class.PageMain.php
    [line] =&#062; 41
)
(
    [type] =&#062; 2048
    [message] =&#062; Non-static method PageMainData::menuHTML() should not be called statically, assuming $this from incompatible context
    [file] =&#062; /var/www/html/test/php/class.PageMain.php
    [line] =&#062; 43
)
(
    [type] =&#062; 2048
    [message] =&#062; Non-static method PageMainHTML::html() should not be called statically, assuming $this from incompatible context
    [file] =&#062; /var/www/html/test/php/class.PageMain.php
    [line] =&#062; 46
)
(
    [type] =&#062; 8
    [message] =&#062; Undefined variable: _pageHtml
    [file] =&#062; /var/www/html/test/php/class.PageMain.php
    [line] =&#062; 146
)]]></description>
			<content:encoded><![CDATA[<p>Your extensions looks really good but after setting up Fb App , the sql<br />
With standalone true and debug on , I have the following php error with different php version 5.3 to 5.5 , do you have any update of your extension<br />
changing the php error level doesnt change , still have this issue 🙁 and even i like the page the coupon discountvoucher1.png come back</p>
<p>Thanks if you could provide some help<br />
(<br />
    [type] =&gt; 2048<br />
    [message] =&gt; Non-static method applicationCredentials::load() should not be called statically, assuming $this from incompatible context<br />
    [file] =&gt; /var/www/html/test/config/applicationConfig.php<br />
    [line] =&gt; 139<br />
)<br />
(<br />
    [type] =&gt; 2048<br />
    [message] =&gt; Non-static method applicationCredentials::load() should not be called statically, assuming $this from incompatible context<br />
    [file] =&gt; /var/www/html/test/config/applicationConfig.php<br />
    [line] =&gt; 139<br />
)<br />
(<br />
    [type] =&gt; 8<br />
    [message] =&gt; Undefined index: signed_request<br />
    [file] =&gt; /var/www/html/test/php/class.DecodeSignedLikeRequest.php<br />
    [line] =&gt; 43<br />
)<br />
(<br />
    [type] =&gt; 8<br />
    [message] =&gt; Undefined offset: 1<br />
    [file] =&gt; /var/www/html/test/php/class.DecodeSignedLikeRequest.php<br />
    [line] =&gt; 60<br />
)<br />
(<br />
    [type] =&gt; 8<br />
    [message] =&gt; Undefined index: discountCodeMessage<br />
    [file] =&gt; /var/www/html/test/php/class.Application.php<br />
    [line] =&gt; 214<br />
)<br />
(<br />
    [type] =&gt; 2048<br />
    [message] =&gt; Non-static method applicationCredentials::load() should not be called statically, assuming $this from incompatible context<br />
    [file] =&gt; /var/www/html/test/config/applicationConfig.php<br />
    [line] =&gt; 139<br />
)<br />
(<br />
    [type] =&gt; 2048<br />
    [message] =&gt; Non-static method PageMainData::loadConfig() should not be called statically, assuming $this from incompatible context<br />
    [file] =&gt; /var/www/html/test/php/class.PageMain.php<br />
    [line] =&gt; 41<br />
)<br />
(<br />
    [type] =&gt; 2048<br />
    [message] =&gt; Non-static method PageMainData::menuHTML() should not be called statically, assuming $this from incompatible context<br />
    [file] =&gt; /var/www/html/test/php/class.PageMain.php<br />
    [line] =&gt; 43<br />
)<br />
(<br />
    [type] =&gt; 2048<br />
    [message] =&gt; Non-static method PageMainHTML::html() should not be called statically, assuming $this from incompatible context<br />
    [file] =&gt; /var/www/html/test/php/class.PageMain.php<br />
    [line] =&gt; 46<br />
)<br />
(<br />
    [type] =&gt; 8<br />
    [message] =&gt; Undefined variable: _pageHtml<br />
    [file] =&gt; /var/www/html/test/php/class.PageMain.php<br />
    [line] =&gt; 146<br />
)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Manh Tu		</title>
		<link>https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-51422</link>

		<dc:creator><![CDATA[Manh Tu]]></dc:creator>
		<pubDate>Fri, 16 Aug 2013 09:54:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=741#comment-51422</guid>

					<description><![CDATA[Hello PAJ,

I install your app, i&#039;am facing same problem with James Ludlow: the discount code has been generated in database but no code has been displayed for customer.
Could you please send the new code to me ?

Thank you in advance.
Tu]]></description>
			<content:encoded><![CDATA[<p>Hello PAJ,</p>
<p>I install your app, i&#8217;am facing same problem with James Ludlow: the discount code has been generated in database but no code has been displayed for customer.<br />
Could you please send the new code to me ?</p>
<p>Thank you in advance.<br />
Tu</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sagar		</title>
		<link>https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-50980</link>

		<dc:creator><![CDATA[Sagar]]></dc:creator>
		<pubDate>Tue, 16 Jul 2013 07:03:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=741#comment-50980</guid>

					<description><![CDATA[I have set up the app as per instruction but not able to generate coupon and nor share any thing on our wall]]></description>
			<content:encoded><![CDATA[<p>I have set up the app as per instruction but not able to generate coupon and nor share any thing on our wall</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: PAJ		</title>
		<link>https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-50722</link>

		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Mon, 24 Jun 2013 09:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=741#comment-50722</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-50718&quot;&gt;James Ludlow&lt;/a&gt;.

Hmmm, you could be right about that. I have actually revamped the whole thing in the last couple of weeks for another project and used another method of detecting if the app is running in Facebook. The new version also runs as a normal facebook canvas app as mobile devices do not see facebook tab apps. I improved the like logic and changed the way the code is displayed to the customer, it also has the ability to validate the code within Magento, and to restrict the code to the users email address, this means users must have an account in the shop registered with the same email address they obtain the facebook code with. This stops people from getting multiple codes from friends, family, new accounts etc. You can see it under the tabs on my facebook page as DEV Discount. If you are interested in the code I can send it to you, its not on my git hub yet. Thanks for the note about the DB file missing a column, I have fixed that, but will probably replace this version of the app with the newer version soon.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-50718">James Ludlow</a>.</p>
<p>Hmmm, you could be right about that. I have actually revamped the whole thing in the last couple of weeks for another project and used another method of detecting if the app is running in Facebook. The new version also runs as a normal facebook canvas app as mobile devices do not see facebook tab apps. I improved the like logic and changed the way the code is displayed to the customer, it also has the ability to validate the code within Magento, and to restrict the code to the users email address, this means users must have an account in the shop registered with the same email address they obtain the facebook code with. This stops people from getting multiple codes from friends, family, new accounts etc. You can see it under the tabs on my facebook page as DEV Discount. If you are interested in the code I can send it to you, its not on my git hub yet. Thanks for the note about the DB file missing a column, I have fixed that, but will probably replace this version of the app with the newer version soon.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: James Ludlow		</title>
		<link>https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-50718</link>

		<dc:creator><![CDATA[James Ludlow]]></dc:creator>
		<pubDate>Sun, 23 Jun 2013 20:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=741#comment-50718</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-50717&quot;&gt;PAJ&lt;/a&gt;.

But if &quot;apps.facebook.com&quot; is NOT in the document.referrer string, then it will return -1, therefore returning false.

Surely it should be === -1, so that it returns true?

Also, the SQL code to create the database misses the &#039;email&#039; field.

And lastly, I&#039;ve got it all working within a tab on my Facebook Page - it displays the page when I haven&#039;t Liked the page, but once I press the Like button, the page refreshes but shows a blank page. If I refresh I&#039;m then presented with the page saying that I&#039;ve already been issued with a discount code. If I look at the database, the discount code has been generated, so something seems to be stopping the display of the page in between the code being created and the page being rendered?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-50717">PAJ</a>.</p>
<p>But if &#8220;apps.facebook.com&#8221; is NOT in the document.referrer string, then it will return -1, therefore returning false.</p>
<p>Surely it should be === -1, so that it returns true?</p>
<p>Also, the SQL code to create the database misses the &#8217;email&#8217; field.</p>
<p>And lastly, I&#8217;ve got it all working within a tab on my Facebook Page &#8211; it displays the page when I haven&#8217;t Liked the page, but once I press the Like button, the page refreshes but shows a blank page. If I refresh I&#8217;m then presented with the page saying that I&#8217;ve already been issued with a discount code. If I look at the database, the discount code has been generated, so something seems to be stopping the display of the page in between the code being created and the page being rendered?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: PAJ		</title>
		<link>https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-50717</link>

		<dc:creator><![CDATA[PAJ]]></dc:creator>
		<pubDate>Sun, 23 Jun 2013 18:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=741#comment-50717</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-50716&quot;&gt;James Ludlow&lt;/a&gt;.

The app will include this javascript in the html if you set the allowstandalone variable in the config to false. It checks if the app is running within a facebook frame or not and redirects. Set allowstandalone to true if you are debugging the app.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-50716">James Ludlow</a>.</p>
<p>The app will include this javascript in the html if you set the allowstandalone variable in the config to false. It checks if the app is running within a facebook frame or not and redirects. Set allowstandalone to true if you are debugging the app.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: James Ludlow		</title>
		<link>https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-50716</link>

		<dc:creator><![CDATA[James Ludlow]]></dc:creator>
		<pubDate>Sun, 23 Jun 2013 18:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=741#comment-50716</guid>

					<description><![CDATA[Had a problem with the FB App page constantly reloading (which I believe is the same problem some of the commentators above me have had).

Traced it down to a line of JavaScript right at the bottom of /php/class.PageMainHTML.php - line 105:
return document.referrer.indexOf(&quot;apps.facebook.com&quot;) != -1;

I believe this should be:
return document.referrer.indexOf(&quot;apps.facebook.com&quot;) === -1;]]></description>
			<content:encoded><![CDATA[<p>Had a problem with the FB App page constantly reloading (which I believe is the same problem some of the commentators above me have had).</p>
<p>Traced it down to a line of JavaScript right at the bottom of /php/class.PageMainHTML.php &#8211; line 105:<br />
return document.referrer.indexOf(&#8220;apps.facebook.com&#8221;) != -1;</p>
<p>I believe this should be:<br />
return document.referrer.indexOf(&#8220;apps.facebook.com&#8221;) === -1;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: seema		</title>
		<link>https://blog.gaiterjones.com/magento-discount-coupon-code-facebook-likes/#comment-49396</link>

		<dc:creator><![CDATA[seema]]></dc:creator>
		<pubDate>Fri, 01 Mar 2013 18:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gaiterjones.com/?p=741#comment-49396</guid>

					<description><![CDATA[Hello,
I am still facing the same problem i have done my config file like this

const appURL = &#039;http://apps.facebook.com/435766836501898/&#039;;
	// The URL to the facebook page or tab
	const fbURL = &#039;http://www.facebook.com/pages/eshishdirectcom/455022474569787?sk=app_435766836501898&#038;app_data&#039;;
	// image file to use as an icon for facebook wallposts etc.
and configured database details as well in config.php file 
now when i run  site.com/coupon/index.php it goes to facebook page nothing is happening .can you please help me with this issue

seema]]></description>
			<content:encoded><![CDATA[<p>Hello,<br />
I am still facing the same problem i have done my config file like this</p>
<p>const appURL = &#8216;http://apps.facebook.com/435766836501898/&#8217;;<br />
	// The URL to the facebook page or tab<br />
	const fbURL = &#8216;http://www.facebook.com/pages/eshishdirectcom/455022474569787?sk=app_435766836501898&amp;app_data&#8217;;<br />
	// image file to use as an icon for facebook wallposts etc.<br />
and configured database details as well in config.php file<br />
now when i run  site.com/coupon/index.php it goes to facebook page nothing is happening .can you please help me with this issue</p>
<p>seema</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
