× Joomla Facebook Connect support forum

Topic-icon Where do I download JFBCInvite?

Support Specialist
14 years 4 months ago #18430 by alzander
Ahh.. I think I noticed the real problem. It does look like your Canvas URL is set for "newdev", however, that URL automatically redirects to the login page. If that's the case for your landing page, Facebook won't be able to pass the required information to JFBConnect on the page load (it will get lost in the redirect). You'll need to use a Canvas URL that doesn't redirect the user. This can be a special menu item not marked as "Registered" that you only use for your Canvas, or if you plan to un-restrict your site when it goes live and have a normal landing page, that will do it.

Until JFBConnect is able to get the information that Facebook passes to us, we won't be able to process requests properly.

Hope that explains,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18431 by AboutMe247sm
Alex,
thanks for response. Currently, the Canvas URl is set to a test area of the site, while we work out the kinks. But if you enter apps.facebook.com/aboutmetwofourseven/ in address bar, it takes you to the following url: aboutme247.com/newdev/index.php?option=c...view=register&ref=fb

I can load that url in firefox with firebug Net panel visible, and it doesn't show any redirection. The page that's displayed may not meet Facebook Guidelines, but that's moot I hope. Maybe I should omit the &ref=fb part at the end.

I just noticed that Requests > Destination URL in admin is set to aboutme247.com/newdev/index.php?option=c...view=register&ref=fb
Perhaps it needs be https:?

I'm open to any suggestions. Incidentally, if your forum has PM capability, I would be glad to provide you login credentials, if that would expedite finding a solution. I appreciate all your help thus far.

thanks,
John
The topic has been locked.
Support Specialist
14 years 4 months ago #18453 by alzander
John,
I was a bit confused about the redirection. Never mind that :)

Remove the ref=fb from the URL, though that's likely not the issue.

In all honesty, I'm not sure what's wrong, so we'd need to take a look at your site. You can PM me by clicking the arrow under my picture (<
) and hitting the mail icon. We'll get in and do what we can to figure out what's happening.

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

None
14 years 4 months ago #18457 by AboutMe247sm
Alex, thanks for following up. Will PM you. Did remove &ref=fb from url.
The topic has been locked.
Support Specialist
14 years 4 months ago #18505 by alzander
John,
Progress! ... and a bug.

First off, for JFBConnect to fill in the Joomla User column for the requests, there needs to be a 'mapping' (connection) between the Joomla User account and the Facebook User. That's done by the user clicking the Login With Facebook button, after which, JFBConnect will connect the accounts (or create a new Joomla user to be connected). Once that's done, the Joomla user info will start filling in for those that have connected.

Second, you found a bug. The main underlying bug is with Facebook ( see the report here , if you care). This bug basically prevents JFBConnect from getting the user's ID if they haven't already approved your application (logged in with their Facebook account). We use the user ID to do some validation on the Request.

I made a quick change to your files which works around this and will properly redirect the user and do everything it should. However, because of this bug, for users that haven't approved the application, the request will remain in the "Sent" state in JFBConnect since we can't properly look up the request.

We'll be doing more testing and see if there's a better workaround we can implement. This should get you going for now though.

Sorry for the troubles,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18507 by AboutMe247sm
Alex, thanks for the update. I see in the backend that the request you sent as well as one you read have Joomla user names. I'm still handicapped by the fact that any requests sent using my own facebook account aren't being received by the addressee. That difficulty aside, I'm uncertain what Login With Facebook button you're referring to. Is this a button I need to add to the site? And does it matter whether or not a user is already logged into the site and/or Facebook when they send a request? Finally, can you provide a list of files you changed so I don't miss any when I migrate code to the production site?

regards,
John
The topic has been locked.
Support Specialist
14 years 4 months ago #18513 by alzander
John,
With the JFBConnect component installation, the SCLogin module was also installed. This is a general replacement for the Joomla Login module, but also adds the "Login With Facebook" button. That button, when clicked, lets a user login to your site using their Facebook credentials. It works by associating that Facebook user with a Joomla user on the site, so we/Joomla/JFBConnect know that if Facebook user "a" is on the site, that's really the Joomla user "John".

There are many options for configuring how the Login functionality works, and is mostly described in the following configuration page:
www.sourcecoast.com/jfbconnect/docs/configuration-guide?start=4

Instead of the SCLogin module (if you already have login areas setup how you want), you can simply modify your template files, modules, etc by adding the {JFBCLogin} tag. Wherever that tag is inserted on your page, JFBConnect will replace it with the "Login With Facebook" button.

Once users make connections between their Facebook and Joomla accounts, you'll see their connections in the User Map area of JFBConnect, you'll see the Joomla user show up in the Request area, and other such things.

The only file I modified was the /components/com_jfbconnect/models/notification.php file.

Hope that explains,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18987 by AboutMe247sm
Alex,
I've been kept busy on other tasks, but I have one more question about facebook invitations. Is it feasible to put in the url for the canvas app a page that contains a link to a registration page that opens in a new tab (in other word, the link has target='_blank')? We'd prefer not having the joomla site registration page embedded in facebook. If the inivted facebook user registers in the page that's in a different tab from the facebook canvas, will JFBConnect recognize that the invitation was accepted?

thanks.
The topic has been locked.
Support Specialist
14 years 4 months ago #19006 by alzander
We had a server issue yesterday and my post was deleted. I know I already responded, but wanted to again to make sure the answer was here.

For the Requests, if you want the Destination URL to open on it's own (out of Facebook), simply check the "Breakout Canvas" checkbox in the Request configuration.

Hope that helps!
Alex
The topic has been locked.