Topic-icon fb request not working

Active Subscriptions:

None
14 years 3 months ago #20053 by ari04011990
Replied by ari04011990 on topic fb request not working
Thanks for the answer Mati.

@Alex: putting everything into one line works and the popup appears again.

However, the problem with the right destination URL still remains:
I go to request and specify the destination URL. When i click on the Notification in facebook, it always keeps on sending me to my homepage in the canvas facebook page and not to the specified destination URL.

Any idea why that is?

Shouldnt it be like this: User, clicks on notification and then it will redirect him to the specified URL which I defined in the "jfbconnect request" section?

I was wondering, if you could help me out asap, as I am getting more and more frustrated with this.

Thanks,
Ari
The topic has been locked.
Support Specialist
14 years 3 months ago #20055 by alzander
Replied by alzander on topic fb request not working
Ari,
I think I see what the problem is. Your Joomla site is being run out of a subdirectory, correct? Your Facebook Canvas page is setup for the root (www.domain.com) but your Joomla site is really out of www.domain.com/blah/joomla. When the main domain is loaded by Facebook, JFBConnect isn't executing at all.

Please update your Canvas URL to be the home page of the Joomla site. Without that, JFBConnect won't detect that a user has actually hit your page at all.. it's not even running at that point.

Think that should do it for you, but if not, let us know!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #20057 by ari04011990
Replied by ari04011990 on topic fb request not working
Hi Alex,

perfect, that worked and it redirects to the website as well.

Still a very small bug: Between clicking on the notification and redirecting to the website, an error line appears for a few seconds.

I have send it to you per pm.

One more question: I dont want to be rude but would you be able to tell me how/where to remove text "powered by JFBConnect" at the bottom of the module box?

cheers
The topic has been locked.
Support Specialist
14 years 3 months ago #20105 by alzander
Replied by alzander on topic fb request not working
Thanks for the PM. We'll have to look into why you're getting that message. To hide it, for now, we'd recommend going into your Global Configuration area and changing the Error Reporting setting to "None". That should be the normal setting for a production site anyways. We'll figure out why the notice is popping up and fix it in the next release... sorry about that.

As for the Powered By, no worries about disabling it. In all of our modules, there is a setting to "Show Powered By" or something like that. Simply disable it, and it will go away.

Hope that helps!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #20304 by ari04011990
Replied by ari04011990 on topic fb request not working
Hi Alex,

Sorry that I did not get back to you earlier. Thanks for your support again!

I obviously left an "excellent" review on the website and hope that more people will buy your product.

There is one little performance related issue I have. When someone clicks on login with facebook for the first time, it takes quite a while until they get logged in the website. some user described this as irritating and unfortunately influences the overall user experience on our website.

When someone logs in for the second time, it is a bit faster, but still too far to slow that one would expect.

What do you think are the reasons and is there a way to speed this up?

Your help will be very much appreciated again!

Many thanks,
Ari
The topic has been locked.
Support Specialist
14 years 2 months ago #20315 by alzander
Replied by alzander on topic fb request not working
Ari,
When a user registers or logs into your site, there's a lot of communication back and forth between Facebook to validate the user. Additionally, if you have the profile plugins enabled, there's even more communication to get the user's profile and avatar. For registrations, there's also the additional overhead for registering the user (creating them in the database, sending emails, and some other verification). All in all, it really shouldn't be that slow, but depending on your host, your speed with communicating to Facebook, and some other factors, things can always get a little bogged down.

I'd recommend trying to disable any of the Profile Plugins for JFBConnect first and see if that has an improvement. If so, make sure you need that plugin enabled. Other things are to check any other User plugins you may have enabled as they may be adding additional overhead to the login process. There's only so much we can do to minimize the time, though we do have some improvements in that area coming for JFBConnect v4.2 However, if it's really slow now, don't expect 4.2 to radically speed things up.. there's always some incremental improvements we try to get in each release, but our login flow is pretty optimized right now.

Hope that helps get you started looking for some bottlenecks. As you narrow things down, if you find a specific setting or plugin that is the main culprit, let us know and we can definitely investigate further.

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

None
14 years 2 months ago #20410 by ari04011990
Replied by ari04011990 on topic fb request not working
Hi Alex,

That makes absolute sense.

When you say "I'd recommend trying to disable any of the Profile Plugins for JFBConnect first and see if that has an improvement. If so, make sure you need that plugin enabled." what do you exactly mean by that/ where do I disable them?

Also, where do I disable the user's avatar and profile import? Do I need to disable "Link to social profile"?

Last question: I know that this will be quite complicated but might know the answer: When my website is connecting to Facebook, would it be possible place a popup which will say: "Please one moment until we connect to fb". Once my website has connected, it should obviously dissappear.

Thanks for your help as always.
Ari
The topic has been locked.
Support Specialist
14 years 2 months ago #20419 by alzander
Replied by alzander on topic fb request not working
The profile plugins are enabled in the Plugin Manager. You can use the filters in the top right of that page to filter for 'jfbcprofiles' plugins, and simply unpublish any that you have enabled. Once unpublished, user profile information won't be imported, so it may not be a final solution, but it will help narrow down whether a large slow down is caused by using them.

It's possible you don't have any jfbcprofile plugins enabled, if you aren't using Community Builder, JomSocial, Kunena, K2, or Agora.. if not, don't worry about this.

For the popup, we're looking into something like that to see if it's possible. I don't know when we could get it out though. We're working on the v4.2 release right now, which streamlines a few things, and if it's possible, we'd love to get it in that release (due out in April), just not sure how feasible/easy it would be to do without interrupting the full registration/login flow.

Hope that helps get you started,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #20757 by ari04011990
Replied by ari04011990 on topic fb request not working
Hi Alex,

I do not have any profile plugins enabled...

I understand that you are very busy with the new release for April, but I was wondering if you could do me huge favour and quickly help me to analyse on the website why things are going so slow.

When a user is not logged in with fb, things are fine, but when the communications with facebook starts, things get really slow and thats quite frustrating for users and obviously for me.

I am really happy with the jfbconnect module, but this one things is just bothering me totally. I dont expect the website to be at normal speed. However, if it could be just a few seconds faster, that would make a huge difference.

Thanks for your help Alex,
Ari
The topic has been locked.
Support Specialist
14 years 2 months ago #20762 by alzander
Replied by alzander on topic fb request not working
Ari,
I just got into the admin area to look to see if you had "Automatically Log Facebook Users In". Since you have it disabled, there's one pretty simple change you can try that we're also testing out for the 4.2 release. Can you edit the /plugins/system/jfbcsystem/jfbcsystem.php file. Search for "status" and you should find it around line 193 in the following piece of code:
FB.init({{$appIdCode}status: true, cookie: true, xfbml: true, oauth: true, channelUrl: '{$channelurl}'});{$subs}{$resizeCode}
In that line, change 'status: true' to 'status: false'

That can shave anywhere from about .5-1s off load time due to a little bit less code loaded from Facebook, an extra check that is not done to see if the user is logged into Facebook, and a few other minor things. They all add up though, and depending on the user's connection and distance to Facebook, it may help a little. Just so you know, this change won't really affect the display of the page, but will affect the display of the page to the 'domready' signal, which is what a lot of Javascript and other events trigger off of. Just want you to know where the improvement will present itself.

There are a few other minor changes that can likely be made, but that's the biggest. When working with Facebook (or any 3rd party site), simply communicating back and forth will add time to your page load.

Other things, non-JFBConnect related, you can look at are:
* Reducing the abundance of extra JS and CSS files loaded (there's 5 CSS and a few JS files from jReviews, a bunch of inline styles from RocketTheme as well as some compressed CSS and JS, etc).
* Enabling the System - Cache plugin to turn on full-page caching. This can cause other issues, so test that everything works for guest users. The system - cache plugin has no effect on logged in users.

Hope that helps. Let us know how it goes!
Alex
The topic has been locked.