Topic-icon Page Position / Login Issues

Active Subscriptions:

None
9 years 4 months ago #60823 by marsco
Replied by marsco on topic Page Position / Login Issues
Mel,

This is an early result, but I found that CiviCRM was using the all.js library. So, uninstalling that component...since it was just taking up space...seems to have solved the challenge. Like I said, it's an early result. More testing to come.

Thanks for the info about all.js.

Martin
The topic has been locked.
Support Specialist
9 years 4 months ago #60824 by mel
Replied by mel on topic Page Position / Login Issues
Good to hear. Let us know you continue to have problems with it.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #60849 by marsco
Replied by marsco on topic Page Position / Login Issues
Alex,

I was hoping that you could offer some more specifics about which file this code should be removed from? I can't seem to find it in any of the page code I have searched. I have tried searching various portions of the code with no results.

If you have another suggestion to help fix my issue I would appreciate it.

Martin
The topic has been locked.
Support Specialist
9 years 3 months ago #60853 by mel
Replied by mel on topic Page Position / Login Issues
As we've said this is dependent on which extensions / templates you have installed on your site. If you send me a PM (using the envelope icon under my avatar) with backend credentials, I can help look through your settings since you're having difficulty narrowing this down.
The topic has been locked.
Support Specialist
9 years 3 months ago #60855 by alzander
Martin,
I'm a bit confused. Above, you mentioned that removing CiviCRM fixed the problem. Is that not the case? If you're still having issues, let us know what those issues are.

Beyond that, if the all.js file is being included by something, there's only so much we can do to narrow it down. We don't know your Joomla install, extensions, etc. There are many extensions for Joomla that could be including that Javascript file. The only tip from the code snippet I posted above that could be a clue is where the following image is being loaded:
'/media/com_aworewards/images/loading.gif
Unsure what com_aworewards is, but check that out to see if there's a way to disable their Facebook integration.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #60863 by marsco
Replied by marsco on topic Page Position / Login Issues
Alex,

When I posted about CiviCRM I gave myself an out when I said it seemed to solve the issue....or something like that.

Obviously it was not the whole challenge. So, Thanks for the suggestion to look at aworewards.

AwoRewards is a well...rewards application that has a facebook element. It's kinda the whole purpose for the application to exist...lol. Let me turn off the Facebook api and see how that affects JFBConnect.

I would not expect SourceCoast to support another company's product. If I continue to have a challenge I will just have to decide which one is more important for my business. They both offer such great benefits.

Luckily, I am still within the 30 day window to get a refund for JFBConnect. Trust me, I don't want to stop using your product. But, I also don't want my customers to have a bad user experience.

Thanks for your recommendation. Let me do some testing, and I will let you know what happens.

Martin
The topic has been locked.
Support Specialist
9 years 3 months ago #60864 by alzander
Martin,
We actually do work with most other extensions that have their own Facebook integration. However, the 'all.js' script from Facebook was deprecated and replaced over 3 years ago and is no longer recommended by Facebook to be used. The new sdk.js file, which we use, is not compatible with the old file being loaded on the site.

There's nothing we can do to support that older version as Facebook intentionally blocks them from working together.

For more details, see:
Facebook's quickstart guide which specifically calls out the sdk.js file:
developers.facebook.com/docs/javascript/quickstart

Another guide from Facebook specifically saying not to use all.js:
developers.facebook.com/docs/javascript/howto/angularjs

And, of course, the obligatory Stack Overflow post:
stackoverflow.com/questions/38462764/dif...ok-all-js-and-sdk-js

I hope that helps explain. I'd recommend contacting the Rewards extension developer to let them know, though they should already. Some extensions have options to not include the Facebook Javascript, in which case they can piggy back on our inclusion.

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

None
9 years 3 months ago - 9 years 3 months ago #60874 by marsco
Replied by marsco on topic Page Position / Login Issues
Alex,
Thanks for the links and guidance. Not being a developer, I really appreciate the education.

I'll look at the links, and contact AWO Dev for further assistance.

Thanks again for all the assistance.

Martin
Last edit: 9 years 3 months ago by marsco.
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago - 9 years 3 months ago #60913 by marsco
Replied by marsco on topic Page Position / Login Issues
Alex,

I reached out to AWO Dev for support, and they helped me with a bit of code for their files.

They said to change this code: js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId='.$this->params->get('social_facebook_key').'";

to this code: js.src = "//connect.facebook.net/en_US/sdk.js";

And after this code:
FB.init({
appId: "'.$this->params->get('social_facebook_key').'",
status: true, // Check login status.
cookie: true, // Enable cookies to allow the server to access the session.
xfbml: true // Parse XFBML.

Add this code: ,version: "v2.8"

After inserting the code in their two files, and clearing the cache files, I find that I still have the login issue with JFBConnect.

Interestingly enough it seems to ONLY be a challenge with Facebook. Twitter and Google perform normally.

Is there anything else you can think of that might be causing a conflict? Is there another avenue that might be tried?

I look forward to your response.

Martin
Last edit: 9 years 3 months ago by marsco.
The topic has been locked.
Support Specialist
9 years 3 months ago #60926 by alzander
If you're using a different Facebook Application ID in AWO than you're using in JFBConnect, that could be part of the problem.

The code they're asking you to update is what JFBConnect is already adding though. You should be able to remove all the code they asked you to post above and JFBConnect will setup Facebook for both JFBConnect and AWO.

The only other setting in JFBConnect you may need to use is the "Always parse tags" setting in the configuration area. Set that to 'Yes' and you should be good to go.

Please test and let us know if you run into any issues.

Thanks,
Alex
The topic has been locked.