Topic-icon Amazon login error

Support Specialist
11 years 4 months ago #50959 by alzander
Replied by alzander on topic Amazon login error
Alright... found the problem. When Amazon is returning us to the site after authentication, we're immediately being redirected to a URL like:
https://www.accordwithnature.com/index.php/component/com_jfbconnect/code,ANTItfFzJVzqynRAvSNd/provider,amazon/scope,profile/state,5f91af3a07d911d7db34e56e5261534e/task,authenticate.callback/
That's *not* the URL that JFBConnect is creating and it's likely being generated by a 3rd party SEF extension. You'll need to edit the SEF extension's settings and have it skip altering URLs for JFBConnect. Each social network is very picky about the URLs that get used and returned and if another extension changes the values... well, you can see what happens above.

Fix that and you should be good to go. If you need anything else though, just let us know and we'll help however we can.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #50961 by [email protected]
sadly enough that operation got only google working. still failing on amazon. that is a great solution tho, was right there and i couldnt see it. Links!
The topic has been locked.
Support Specialist
11 years 4 months ago #50973 by mel
Replied by mel on topic Amazon login error
Right now, I am seeing the following error "We were unable to retrieve your Amazon account information. Please try again." This means we got a little further and the above fixed the redirect, so that's progress. Could you PM me credentials to your backend and FTP credentials? I have a couple of ideas on things to try, but would need to be able to make code changes.

-Melissa
The topic has been locked.
Support Specialist
11 years 4 months ago #51015 by mel
Replied by mel on topic Amazon login error
We're trying to determine the cause, but it's difficult without access to the admin area or FTP credentials. Something very strange is happening though. I PM'd you earlier and mentioned an issue with your template. Disregard that as I got my posts confused.

As to things you can try now, we really just need to narrow down where the communication with Amazon is breaking down. The next bit of code to edit would be in the /components/com_jfbconnect/libraries/provider/amazon.php file. Around line 63 you should see:
$profile = $this->profile->fetchProfile('user', 'user_id');
Please add:
JFactory::getApplication()->enqueueMessage( print_r($profile, true) );
That should add a new message above the "We were unable to retrieve your Amazon account information. Please try again." message that displays the information that Amazon is returning about the user.

Depending on what, if anything, that returns, we'll be able to decide where to dig next. Please add that code and leave it implemented.

If you get a white page on your site after adding that, it means there's something wrong with the code. Double-check it, or let us know, and we'll help investigate further.

Thanks,
Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #51026 by [email protected]
done
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #51033 by [email protected]
return info looks that same?
The topic has been locked.
Support Specialist
11 years 4 months ago #51035 by alzander
Replied by alzander on topic Amazon login error
Melissa and I are both stumped as to what the issue is. We're going to have to sit down and go make some edits to the code on your site to narrow down where the problem is occurring to figure out the problem and provide a solution.

Can you please Private Message Melissa or I with FTP credentials? I know you messaged to her at one point that you'd prefer not too, but I don't see any other way forward to resolve this as the things that should be happening with that change aren't, and we don't know why.

Thanks,
Alex
The topic has been locked.