Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ezsocial for osC2.3.4BS v1.0a


frankl

Recommended Posts

@frankl

Thanks Frank, I hid my prior comment before seeing your reply. I appreciate the help.

I cannot seem to get past the this error - see screenshot below.

The thing is that I followed the instructions in the PDF but they did not work for me. So I Googled how to do this and found this set of instructions:

https://auth0.com/docs/connections/social/facebook

I had to register with https://auth0.com

The http://your_site/your_folder/login_with_facebook.php for the callback URI does not work. So, according to autho.com instructions I tried their version of

http://[MY AUTH0 USER NAME].auth0.com/login/callback and that does not work either.

Has anyone run into this issue before and found a solution? No matter what I do, I get the same error when testing the login authentication.

error-message.png.5fbb4da69ec2631c4a964454db55f224.png

fb-app-settings-1.thumb.png.89a4a18333aeb01c2b49c7a45e35df13.png

osCommerce: made for programmers, ...because store owners do not want to be programmers.

https://trends.google.com/trends/explore?date=all&geo=US&q=oscommerce

Link to comment
Share on other sites

These are the settings I have.

image.png.04431b02cf03f61da7bf30c58557b37f.png

which works fine.

My OAuth Redirect URI is https, not sure if that's relevant.

Alternatively, are you trying to collect any of the following:

  • user_link
  • user_gender
  • user_age_range
  • user_friends
     
    as these are no longer allowed to be accessed without an App review.

osCommerce user since 2003! :thumbsup:

Link to comment
Share on other sites

@frankl

I tried replicating everything you have and unchecked all permissions, but not attributes,.. and I'm still getting the same error.

The https may be the cause of it. or it may be that this is on a subdomain. I tried it with https setting, but my subdomain is not https. And it did not work in changing that callback URI to https.

So, I don't know,.. maybe it's just not meant to be.

 

osCommerce: made for programmers, ...because store owners do not want to be programmers.

https://trends.google.com/trends/explore?date=all&geo=US&q=oscommerce

Link to comment
Share on other sites

my lowest version for Upgrade All Calls is 2.7 and the other one is now only 3.1

I tried that 2.7, but no improvement, ..still getting the same error. I tested the validity of the redirect URI and that came back good.

I don't know, ..I think I have to put it down and perhaps try it again when I have the site in production (off the sub-domain).

osCommerce: made for programmers, ...because store owners do not want to be programmers.

https://trends.google.com/trends/explore?date=all&geo=US&q=oscommerce

Link to comment
Share on other sites

@frankl

Frank,

Thanks man, but seems like I'm the only one having this issue. So, no need to waste time on it. Thank you for all your help.

osCommerce: made for programmers, ...because store owners do not want to be programmers.

https://trends.google.com/trends/explore?date=all&geo=US&q=oscommerce

Link to comment
Share on other sites

  • 5 months later...
  • 3 weeks later...

I have a smiliar problem same problem here with the OAuth not passing - I tried EVERYTHING - complete new app, changed everything, but no luck at all! It keeps saying the same error:
weadress not included in this apps domain - but it doesn't matter, even I change everything to something "wrong" it gives me the same error :(

I googled and I find that this error is pretty common for a variety of problems and typically linked to OAuth redirect URI... but tried it all :(

Edited by gummipingvin
Link to comment
Share on other sites

  • 3 months later...

Since Google+ has mostly gone away, should we be thinking about removing it from stores? I never used it, but my understanding is that it's only available for "G Suite", whatever that is. Do the Google+ functions on osC still do anything, or are they just an embarrassment that osC hasn't been updated in ages? If it should go away, I can add that to my Frozen patch set. It will be up to others to fix Edge and the official product.

Link to comment
Share on other sites

"While we’re sunsetting Google+ for consumers, we’re investing in Google+ for enterprise organizations. They can expect a new look and new features -- more information is available in our blog post. "

Still alive and kicking for B2B

 

Link to comment
Share on other sites

  • 2 months later...

In "ezsocial_success.php" file, at line 104, find this sentense :
 

				  $messageStack->add_session('product_action', 'Welcome back ' . $ezsocial_first . '. Successfully logged in using ' . ucwords($ezsocial_type), 'success');

and replace by this one to have correct language display:
 

				  $messageStack->add_session('product_action', sprintf(SOCIAL_LOGINS_LOGIN_SUCCESS, tep_output_string_protected($ezsocial_first), ucwords($ezsocial_type)), 'success');
				  tep_redirect(tep_href_link('index.php'));

 

Osc v2.3.4 BS "custom"
PHP 7.3 compatible (710 modified files => o_O')

Link to comment
Share on other sites

@frankl

During my tests, I can recover from Google or Facebook the "First Name" but the "Last name" is incomplete when it is a "compound name" (= with several words).

For example :
- F
irst name "Diego" => "Diego"
- Last name "de la Vegas" => "de"

Maybe it will be the same if first name is also composed :
"Don Diego" => "Don"

Do you meet the same problem?

Osc v2.3.4 BS "custom"
PHP 7.3 compatible (710 modified files => o_O')

Link to comment
Share on other sites

@frankl

During my tests, I can recover from Google or Facebook the "First Name" but the "Last name" is incomplete when it is a "compound name" (= with several words).

For example :
- F
irst name "Diego" => "Diego"
- Last name "de la Vegas" => "de"

Maybe it will be the same if first name is also composed :
"Don Diego" => "Don"

Do you meet the same problem?

--------------------------------------------------------------------

Ok I have found how to fix it (and arrange the whole) :

1. In "ezsocial_success.php" file, at line 169, find this :

echo tep_draw_hidden_field('social_login', NULL, 'value=social_login');
echo tep_draw_hidden_field('ezsocial_type', NULL, 'value=' . $ezsocial_type);
echo tep_draw_hidden_field('ezsocial_id', NULL, 'value=' . $ezsocial_id);

and replace by this :

echo tep_draw_hidden_field('social_login', 'social_login');
echo tep_draw_hidden_field('ezsocial_type', $ezsocial_type);
echo tep_draw_hidden_field('ezsocial_id', $ezsocial_id);

 

2. At line 207, find this :

		if($firstname == 'Unknown') {


		  echo tep_draw_input_field('firstname', NULL, 'required aria-required="true" id="inputFirstName" placeholder="' . ENTRY_FIRST_NAME_TEXT . '"');
          echo FORM_REQUIRED_INPUT;
		} else {
		  echo tep_draw_input_field('firstname', NULL, 'value=' . $firstname . ' required aria-required="true" id="inputFirstName"');
          echo FORM_REQUIRED_INPUT;
		}

And replace by this :

		if($firstname == 'Unknown') {
		  echo tep_draw_input_field('firstname', NULL, 'required aria-required="true" id="inputFirstName" placeholder="' . ENTRY_FIRST_NAME_TEXT . '" maxlength="32"');
          echo FORM_REQUIRED_INPUT;
		} else {
		  echo tep_draw_input_field('firstname', $firstname, 'required aria-required="true" id="inputFirstName" maxlength="32"');
          echo FORM_REQUIRED_INPUT;
		}

 

3. 2. At line 222, find this :

		if($lastname == 'Unknown') {

          echo tep_draw_input_field('lastname', NULL, 'required aria-required="true" id="inputLastName" placeholder="' . ENTRY_LAST_NAME_TEXT . '"');
          echo FORM_REQUIRED_INPUT;
		} else {
		  echo tep_draw_input_field('lastname', NULL, 'value=' . $lastname . ' required aria-required="true" id="inputLastName" placeholder="' . ENTRY_LAST_NAME_TEXT . '"');
          echo FORM_REQUIRED_INPUT;
		}

And replace by this :

		if($lastname == 'Unknown') {
          echo tep_draw_input_field('lastname', NULL, 'required aria-required="true" id="inputLastName" placeholder="' . ENTRY_LAST_NAME_TEXT . '" maxlength="32"');
          echo FORM_REQUIRED_INPUT;
		} else {
		  echo tep_draw_input_field('lastname', $lastname, 'required aria-required="true" id="inputLastName" maxlength="32"');
          echo FORM_REQUIRED_INPUT;
		}

 

4. At line 252, find this :

		if($email_address == 'Unknown') {


		  echo tep_draw_input_field('email_address', NULL, 'value=' . $email_address . ' required aria-required="true" id="inputEmail" placeholder="' . ENTRY_EMAIL_ADDRESS_TEXT . '"', 'email');
          echo FORM_REQUIRED_INPUT;
		} else {
		  echo tep_draw_hidden_field('email_address', NULL, 'value=' . $email_address . ' required aria-required="true" id="inputEmail" placeholder="' . ENTRY_EMAIL_ADDRESS_TEXT . '"', 'email');
		  echo $email_address;
		}

And replace by this :

		if($email_address == 'Unknown') {
		  echo tep_draw_input_field('email_address', NULL, 'required aria-required="true" id="inputEmail" placeholder="' . ENTRY_EMAIL_ADDRESS_TEXT . '" maxlength="96"', 'email');
          echo FORM_REQUIRED_INPUT;
		} else {
		  echo tep_draw_input_field('email_address', $email_address, 'required aria-required="true" id="inputEmail" maxlength="96" disabled', 'email');
		}


That's it for fix.

Edited by milerwan

Osc v2.3.4 BS "custom"
PHP 7.3 compatible (710 modified files => o_O')

Link to comment
Share on other sites

@frankl

New Ezsocial for osC 2.3.4 BS v1.0b (ezsocial_for_edge_1.0b.rar" file) with :
- "Welcome back" messageStack fixed for multi languages
- Bug fix for "
compound names" (addressed above)
- Remodeling email field with "tep_draw_input_field" function with disabled parameter
- New social buttons with BS css look (streamlined css, text-center, perfect alignment whatever the language used, hover darker)
- Updated English and French languages


NB: If you find bugs, please report here.

ezsocial_for_edge_1.0b.rar

Edited by milerwan

Osc v2.3.4 BS "custom"
PHP 7.3 compatible (710 modified files => o_O')

Link to comment
Share on other sites

  • 2 months later...
On 8/13/2019 at 9:29 PM, milerwan said:

@frankl

New Ezsocial for osC 2.3.4 BS v1.0b (ezsocial_for_edge_1.0b.rar" file) with :
- "Welcome back" messageStack fixed for multi languages
- Bug fix for "
compound names" (addressed above)
- Remodeling email field with "tep_draw_input_field" function with disabled parameter
- New social buttons with BS css look (streamlined css, text-center, perfect alignment whatever the language used, hover darker)
- Updated English and French languages


NB: If you find bugs, please report here.

ezsocial_for_edge_1.0b.rar

Have you tested API versions with this module? I use an older version where I have this setting:

        // init app with app id and secret
        $fb = new Facebook\Facebook([
          'app_id' => 'XXXXXXXXXXXX',
          'app_secret' => 'XXXXXXXXXXXX',
          'default_graph_version' => 'v2.12',
        ]);

 

But when I change default_graph_version to anything higher than 2.12 (3.XX) then it doesnt work - just says unknown opengraph error 

Link to comment
Share on other sites

2 hours ago, gummipingvin said:

Have you tested API versions with this module? I use an older version where I have this setting:

        // init app with app id and secret
        $fb = new Facebook\Facebook([
          'app_id' => 'XXXXXXXXXXXX',
          'app_secret' => 'XXXXXXXXXXXX',
          'default_graph_version' => 'v2.12',
        ]);

 

But when I change default_graph_version to anything higher than 2.12 (3.XX) then it doesnt work - just says unknown opengraph error 

I have tested with Facebook and Google and it works.
Maybe you need to update your account from Facebook's developers website https://developers.facebook.com/

Osc v2.3.4 BS "custom"
PHP 7.3 compatible (710 modified files => o_O')

Link to comment
Share on other sites

  • 8 months later...

Hi there,

Is this still an active and recommended addon?

Am testing an initial install.  Using Google to login, it throws me back to my website an my error handler, showing me a 403 error.   Dont even know where to start with that....

BTW, the Google account I am using contains an email address that should flag me as a new customer to my osC shop.  I am assuming this addon can handle that...right?

Link to comment
Share on other sites

  • 4 weeks later...

Got this error trying to login into Facebook:

Facebook has detected xxxxx  isn't using a secure connection to transfer information.

Solution seems to be add SSL osc style to line 22 in login_with_facebook.php.

    $ezsocial_uri = tep_href_link('login_with_facebook.php', '', 'SSL');

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...