Version Notes
fix for the Facebook API 2.5 update
Download this release
Release Info
Developer | Magento Core Team |
Extension | facebookfreebelvg |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.1.0
- app/code/community/{Belvg → BelVG}/All/Block/Extensions.php +0 -0
- app/code/community/{Belvg → BelVG}/All/Block/Store.php +0 -0
- app/code/community/{Belvg → BelVG}/All/Helper/Config.php +0 -0
- app/code/community/{Belvg → BelVG}/All/Helper/Data.php +0 -0
- app/code/community/{Belvg → BelVG}/All/Model/Feed.php +0 -0
- app/code/community/{Belvg → BelVG}/All/Model/Observer.php +0 -0
- app/code/community/{Belvg → BelVG}/All/Model/Source/Updates/Type.php +0 -0
- app/code/community/{Belvg → BelVG}/All/etc/adminhtml.xml +0 -0
- app/code/community/{Belvg → BelVG}/All/etc/config.xml +0 -0
- app/code/community/{Belvg → BelVG}/All/etc/system.xml +0 -0
- app/code/community/{Belvg → BelVG}/All/sql/belvgall_setup/mysql4-install-1.0.0.php +0 -0
- app/code/community/{Belvg → BelVG}/All/sql/belvgall_setup/mysql4-upgrade-1.0.0-1.0.1.php +0 -0
- app/code/community/{Belvg → BelVG}/All/sql/belvgall_setup/mysql4-upgrade-1.0.1-2.0.0.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Block/Init.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Block/Like/Meta.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Block/Links.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Block/Links/Button.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Block/Page/Html/Header.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Helper/Config.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Helper/Data.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Model/Customer.php +14 -4
- app/code/community/{Belvg → BelVG}/FacebookFree/Model/Facebookfree.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Model/Locale.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Model/Mysql4/FacebookFree.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Model/Request.php +1 -1
- app/code/community/{Belvg → BelVG}/FacebookFree/Model/Request/Cookie.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Model/Resource/Facebookfree.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Model/Resource/Facebookfree/Collection.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Model/System/Config/Source/Color.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Model/System/Config/Source/Font.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/Model/System/Config/Source/Layout.php +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/controllers/CustomerController.php +5 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/etc/adminhtml.xml +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/etc/config.xml +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/etc/locale.xml +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/etc/system.xml +0 -0
- app/code/community/{Belvg → BelVG}/FacebookFree/sql/facebookfree_setup/mysql4-install-1.0.1.php +0 -0
- app/etc/modules/Belvg_FacebookFree.xml +1 -1
- package.xml +8 -8
app/code/community/{Belvg → BelVG}/All/Block/Extensions.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/All/Block/Store.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/All/Helper/Config.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/All/Helper/Data.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/All/Model/Feed.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/All/Model/Observer.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/All/Model/Source/Updates/Type.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/All/etc/adminhtml.xml
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/All/etc/config.xml
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/All/etc/system.xml
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/All/sql/belvgall_setup/mysql4-install-1.0.0.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/All/sql/belvgall_setup/mysql4-upgrade-1.0.0-1.0.1.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/All/sql/belvgall_setup/mysql4-upgrade-1.0.1-2.0.0.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Block/Init.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Block/Like/Meta.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Block/Links.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Block/Links/Button.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Block/Page/Html/Header.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Helper/Config.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Helper/Data.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Model/Customer.php
RENAMED
@@ -33,7 +33,7 @@ class Belvg_FacebookFree_Model_Customer extends Mage_Customer_Model_Customer
|
|
33 |
|
34 |
if (!is_null($key) && isset($data[$key])) {
|
35 |
$data = $data[$key];
|
36 |
-
}
|
37 |
|
38 |
return $data;
|
39 |
}
|
@@ -73,9 +73,19 @@ class Belvg_FacebookFree_Model_Customer extends Mage_Customer_Model_Customer
|
|
73 |
* @return Belvg_FacebookFree_Model_Customer
|
74 |
*/
|
75 |
public function prepareData()
|
76 |
-
{
|
77 |
-
$this->
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
$this->setData('email', $this->getFbData('email'));
|
80 |
$this->setData('password', $this->generatePassword());
|
81 |
$this->setData('is_active', TRUE);
|
33 |
|
34 |
if (!is_null($key) && isset($data[$key])) {
|
35 |
$data = $data[$key];
|
36 |
+
}
|
37 |
|
38 |
return $data;
|
39 |
}
|
73 |
* @return Belvg_FacebookFree_Model_Customer
|
74 |
*/
|
75 |
public function prepareData()
|
76 |
+
{
|
77 |
+
if (isset($this->_fb_data['first_name'], $this->_fb_data['last_name'])) {
|
78 |
+
$firstname = $this->getFbData('first_name');
|
79 |
+
$lastname = $this->getFbData('last_name');
|
80 |
+
} else {
|
81 |
+
$nameData = explode(' ', $this->getFbData('name'));
|
82 |
+
$nameData = array_pad($nameData, 2, NULL);
|
83 |
+
$firstname = $nameData[0];
|
84 |
+
$lastname = $nameData[1];
|
85 |
+
}
|
86 |
+
|
87 |
+
$this->setData('firstname', $firstname);
|
88 |
+
$this->setData('lastname', $lastname);
|
89 |
$this->setData('email', $this->getFbData('email'));
|
90 |
$this->setData('password', $this->generatePassword());
|
91 |
$this->setData('is_active', TRUE);
|
app/code/community/{Belvg → BelVG}/FacebookFree/Model/Facebookfree.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Model/Locale.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Model/Mysql4/FacebookFree.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Model/Request.php
RENAMED
@@ -4,7 +4,7 @@ class Belvg_FacebookFree_Model_Request extends Varien_Object
|
|
4 |
{
|
5 |
|
6 |
const FB_REQUEST_URL = 'https://graph.facebook.com/oauth/access_token?client_id=%s&redirect_uri=&client_secret=%s&code=%s';
|
7 |
-
const FB_USER_URL = 'https://graph.facebook.com/%s?access_token=%s';
|
8 |
|
9 |
/**
|
10 |
* Send request to FB
|
4 |
{
|
5 |
|
6 |
const FB_REQUEST_URL = 'https://graph.facebook.com/oauth/access_token?client_id=%s&redirect_uri=&client_secret=%s&code=%s';
|
7 |
+
const FB_USER_URL = 'https://graph.facebook.com/%s?access_token=%s&fields=name,first_name,last_name,email,id';
|
8 |
|
9 |
/**
|
10 |
* Send request to FB
|
app/code/community/{Belvg → BelVG}/FacebookFree/Model/Request/Cookie.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Model/Resource/Facebookfree.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Model/Resource/Facebookfree/Collection.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Model/System/Config/Source/Color.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Model/System/Config/Source/Font.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/Model/System/Config/Source/Layout.php
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/controllers/CustomerController.php
RENAMED
@@ -17,6 +17,11 @@ class Belvg_FacebookFree_CustomerController extends Mage_Core_Controller_Front_A
|
|
17 |
|
18 |
try {
|
19 |
$fb_data = Mage::getModel('facebookfree/request')->load();
|
|
|
|
|
|
|
|
|
|
|
20 |
$customer_model = Mage::getModel('facebookfree/customer')->setFbData($fb_data);
|
21 |
|
22 |
// check if we need to create customer or register FB user
|
17 |
|
18 |
try {
|
19 |
$fb_data = Mage::getModel('facebookfree/request')->load();
|
20 |
+
|
21 |
+
if (!isset($fb_data['email'])) {
|
22 |
+
throw new Exception('You should allow application to access Email field from your Facebook account.');
|
23 |
+
}
|
24 |
+
|
25 |
$customer_model = Mage::getModel('facebookfree/customer')->setFbData($fb_data);
|
26 |
|
27 |
// check if we need to create customer or register FB user
|
app/code/community/{Belvg → BelVG}/FacebookFree/etc/adminhtml.xml
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/etc/config.xml
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/etc/locale.xml
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/etc/system.xml
RENAMED
File without changes
|
app/code/community/{Belvg → BelVG}/FacebookFree/sql/facebookfree_setup/mysql4-install-1.0.1.php
RENAMED
File without changes
|
app/etc/modules/Belvg_FacebookFree.xml
CHANGED
@@ -35,7 +35,7 @@
|
|
35 |
<Belvg_FacebookFree>
|
36 |
<active>true</active>
|
37 |
<codePool>community</codePool>
|
38 |
-
<version>2.0
|
39 |
<depends>
|
40 |
<Mage_Customer />
|
41 |
</depends>
|
35 |
<Belvg_FacebookFree>
|
36 |
<active>true</active>
|
37 |
<codePool>community</codePool>
|
38 |
+
<version>2.1.0</version>
|
39 |
<depends>
|
40 |
<Mage_Customer />
|
41 |
</depends>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>facebookfreebelvg</name>
|
4 |
-
<version>2.0
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt">EULA</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>Connect your
|
10 |
-
<description>Connect your
|
11 |
-
<notes>
|
12 |
-
<authors><author><name>BelVG</name><user>auto-converted</user><email>store@belvg.com</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>facebookfreebelvg</name>
|
4 |
+
<version>2.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt">EULA</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Connect your store to Facebook and benefit from Login and Like features.</summary>
|
10 |
+
<description>Connect your store to Facebook and benefit from Login and Like features.</description>
|
11 |
+
<notes>fix for the Facebook API 2.5 update</notes>
|
12 |
+
<authors><author><name>BelVG LLC</name><user>auto-converted</user><email>store@belvg.com</email></author></authors>
|
13 |
+
<date>2016-03-21</date>
|
14 |
+
<time>15:34:45</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="BelVG"><dir name="All"><dir name="Block"><file name="Extensions.php" hash="7a1acbdaf1e3a507d6bfc8a46973cad4"/><file name="Store.php" hash="a91e4c7e02ef17297cad97efa6a5edc8"/></dir><dir name="Helper"><file name="Config.php" hash="173a4200bde91231142c11b267ef488c"/><file name="Data.php" hash="382f395273d184d54e2be04297300f26"/></dir><dir name="Model"><dir name="Source"><dir name="Updates"><file name="Type.php" hash="7e861f39d566a9f26e3b1e1a2c0448f5"/></dir></dir><file name="Feed.php" hash="63e8802d36f74e11f6213140e081e1c3"/><file name="Observer.php" hash="140a3145e71f6c076355e21e1720bdc2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="ba3172ef47b6df83e6dd9e7283edc688"/><file name="config.xml" hash="4dd36439ea0d58923a62fb4f0bd5f915"/><file name="system.xml" hash="5d81781651401be847bd408eb1aa66ca"/></dir><dir name="sql"><dir name="belvgall_setup"><file name="mysql4-install-1.0.0.php" hash="65e66e24c877cdac3c8046f75b345063"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="b14da80b9c81773060527ce2a9ea741d"/><file name="mysql4-upgrade-1.0.1-2.0.0.php" hash="99a6d4c3dc36f58b8c7134e4695a8bc3"/></dir></dir></dir><dir name="FacebookFree"><dir name="Block"><dir name="Like"><file name="Meta.php" hash="638337358da365b406ea150e7addddaa"/></dir><dir name="Links"><file name="Button.php" hash="d6abbd88ba7f2cb7f114c3a8ccc327e1"/></dir><dir name="Page"><dir name="Html"><file name="Header.php" hash="fcd1316127bff43a86789adafa23d021"/></dir></dir><file name="Init.php" hash="d65a5d565200975a57173b3f92efbc96"/><file name="Links.php" hash="9420b0f12f864ac6259ca033a72e4fb9"/></dir><dir name="Helper"><file name="Config.php" hash="3058ac18b0d6e608a121209f714357c4"/><file name="Data.php" hash="685a189fea7101185b58e8e78cd4b02c"/></dir><dir name="Model"><dir name="Mysql4"><file name="FacebookFree.php" hash="8e53193e6c03c810c99c38e966a52005"/></dir><dir name="Request"><file name="Cookie.php" hash="c1ef0cca794fef5821ac4719ce347633"/></dir><dir name="Resource"><dir name="Facebookfree"><file name="Collection.php" hash="d4c73d33d559b5eaf7d08f3287bd76e8"/></dir><file name="Facebookfree.php" hash="64867ae5a21e93f4a97d288b906c471c"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Color.php" hash="f05f16bf0a791d527417e11945ea33f7"/><file name="Font.php" hash="88d5212453523acc35ee12ab740ba687"/><file name="Layout.php" hash="42363bf551b4d55101c323e095ff9ab5"/></dir></dir></dir><file name="Customer.php" hash="2e491bf05631f0cfb0e70ce301d9ae1d"/><file name="Facebookfree.php" hash="783879dfe7458e87129d58a885ad539a"/><file name="Locale.php" hash="ec747efb16c4e357b471fd0fbf6b99ab"/><file name="Request.php" hash="88b92494fa047fdcce15d6f085423981"/></dir><dir name="controllers"><file name="CustomerController.php" hash="c3b02ba77e80dfbe2880851e9a179ed4"/></dir><dir name="etc"><file name="adminhtml.xml" hash="d242bf8a41a872f4f02b194359ee4d4c"/><file name="config.xml" hash="372bd3c7ab7c4db1670f20a18c341d8e"/><file name="locale.xml" hash="dc61fb00273719a64db2116282b98b2c"/><file name="system.xml" hash="f71c05f44e2d51676827a7fa051a6976"/></dir><dir name="sql"><dir name="facebookfree_setup"><file name="mysql4-install-1.0.1.php" hash="eb24580edb1bea4343ba3e1114a61eb6"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="belvg"><file name="facebookfree.xml" hash="f5f01e2adbf6b9aa3841f95ee22e852f"/></dir></dir><dir name="template"><dir name="belvg"><dir name="facebookfree"><dir name="form"><dir name="checkout"><file name="login.phtml" hash="9e2be195cd4fd66610fee6f33fff5418"/></dir><dir name="customer"><file name="login.phtml" hash="4f66f90ab25de8cea06b99d46e19f622"/></dir><file name="button.phtml" hash="7d556665664f037f2e8b31357cdd676b"/></dir><dir name="like"><dir name="product"><dir name="view"><file name="addto.phtml" hash="1053769320ed3a64f975e063edb916b4"/></dir></dir><file name="meta.phtml" hash="a76c08221c03593ffec1d1a98e43d1f7"/></dir><file name="block.phtml" hash="f6c1c8e44fac2bba46a17ac865af863d"/><file name="links.phtml" hash="20c5ca44c97b58180d7de47964560264"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Belvg_FacebookFree.xml" hash="d110a45fffb7500dd0b0328cb69579ff"/><file name="Belvg_All.xml" hash="e04907d3a11eed6bc654876b9ac8ebc7"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="belvg"><file name="fb.gif" hash="865312ef4436675a9c79bacb7c97407f"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|