by Dave
First uploaded 489 days ago
0
Recommendations
Summary:
This plugin lets new users join your Elgg site using their Facebook account
Full description:
Facebook Connect
(Edit your project's description!)
Warning: this plugin is in the early stages of development. All feedback welcome to help us improve it. I do not recommend you use this on a production site just yet.
About:
A new user who signs up via FBConnect will have their Elgg profile populated with their Facebook profile information and status, the avatar is also pulled across. The user's Elgg profile is sync'ed with their Facebook account, so each time they login in, it will update. Users can unsync their profile from Facebook and fill in the Elgg one, if they want.
Issues:
To use:
Thank You! Very cool plugin. I haven't actually tested it yet, but I'm excited to see it available. If it could create accounts on Elgg (so that if FBConnect was disabled, users could still access Elgg) using a Facebook user's username, e-mail address, and password, then it would be an even more amazing addition to the Elgg plugin arsenal.
Thanks for your hard work!
Patrick Widen 489 days ago
i have one doubt...
if this is used, then would it import any data like profile fields from facebook.. or would it just allow users to create a account and thts it...
and also wht abt the database connected to elgg.. would that import the data and fill the tables of the registration form.. or no?/
James 489 days ago
This is really nice plugin.
Mike (vazco) 489 days ago
I´d love to move the Facebook logedin Users to the "Edit Accout" page so they can simply fill out the forms and be a part of the communitypage.
Zeronix 489 days ago
I tested the plugin in IE and oooops, its not closing the Popup and login to the elgg site.
Zeronix 489 days ago
tested this on my dev site (elgg 1.5) and followed instruction, worked like a charm.
I have modified my custom index and removed the default login so had to pull in the code from the login.php file, just thought is would share this incase anyone else has removed the default login widget.
Awsome feature dave thank you :)
trademark 489 days ago
@Patrick - Facebook never reveals the user's email address or password. There is no way to get this (beyond asking the user to re-enter it, which destroys the point of Facebook Connect). Facebook users have uids and display names but they do not have usernames. One is constructed for Elgg using the uid:
facebook_xxxxx
Kevin Jardine 489 days ago
Thanks Dave and Kevin for this wonderfull mod and that too making it available within the week of facebook announcing their Open Stream API.\
Hats off to you.
@Kevin : Well I installed the mod and it worked great,but I have couple of quiries,
First time I use the fconnect ,it exported avataar and other details from my facebook account and also updated wire with the latest my facebook post like "Posted to the wire an hour ago via facebook.", but when i posted something on wire it wasnt reflected in facebook and whatever I updated the wall on facebook it doesnt show up on my site.I logged in and out from both facebook and my elgg site but only avataar and profile fields got updated not the wire .I know there should be some cron running and will sync the site with facebook after every 12 hrs,is that an issue,because i dont know how to check the cron or it is a design feature and only works like that.
sorry for taking so much space,i only want to make sure that i explain my query better.
yasyas 488 days ago
@yasyas: This is the current intended behaviour.
The wire is only updated with the Facebook user status the first time the person logs in when the account is created. The sync that happens after that is the profile details (avatar, name, location, about me, interests).
Possibly the wire update should be removed entirely as it really is not related to profile syncing, which is what the current Facebook Connect plugin is about. We could add more features later that handle status and wall syncing separately.
Kevin Jardine 487 days ago
Anyone fixed the IE problem i posted above?
It´s still not closing the Login Popup and redirect to the mainsite (as logged in User).
Zeronix 487 days ago
@Zeronix, I've tested this plugin with IE and it works properly for me.
Can you explain more clearly and in more detail what behaviour you are seeing and what you think should happen instead?
Kevin Jardine 486 days ago
Works great in my standard install of Elgg 1.5, however some major issues when installed on my customized installation (profile layout and content is altered, though basic framework is *mostly* untouched) For example, the status widget in my custom installation isn't a widget at all, but actually the code is directly incorporated into the top Profile info, next to the user's name (just like in FB). For some reason, FB Connect logins don't update the status in this case, though the code is almost untouched (keyword likely, almost). It was just moved with different CSS.
Obviously, this isn't likely an issue with your plugin, rather that it wasn't designed to work with custom jobs of this extent.
A great starting point for me, however. Totally appreciate it.
A few features you might add: (or I will if I beat you guys to it)
1. Syncing the other way. Elgg -> Facebook (i.e. Update Elgg Status updates their FB status)
2. Ability to sync through FB Connect with an existing registered account so users who have already been using the service can sync FB too.
3. Vice versa #2. Users who log in initially with FB Connect can later "upgrade" their account to a full one with normal login, while still keeping their FB connect abilities.
I'm sure there are others I'll think of later. Like I said though, totally awesome jump start for me. Love it.
I installed the plugin and it was working correctly, I was able to login with one facebook account. Than I logged in with a different Facebook account, wich has the same user name of my Admin elgg account, and I got a fatal error.
Right now my elgg website shows up but when i try to access the User Administration Tool, the GUID tool or the all members, I get an error: Invalid Parameter Exception. All files must have an owner.
Is there somebody who can help with this? Thanks.
Simone 486 days ago
Simone,
Since Facebook accounts don't have usernames, I'm finding it hard to understand your message. The Facebook Connect plugin creates usernames for Elgg of the form "facebook_xxxx" where xxxx is the Facebook UID.
Did you mean that it has the same display name? That should not matter because you can have as many Elgg accounts as you like with the same display name, eg. "John Smith".
When you say that you got a "Fatal error", what actually happened? What was the message?
What version of Elgg are you running?
Kevin Jardine 485 days ago
One case that I have not tested is if someone manages to set two different Elgg accounts to the same Facebook UID. This would be possible if you use the User setting on an ordinary Elgg account to say "Log in using my Facebook account" and specify a Facebook UID that is already associated with another Elgg account.
Kevin Jardine 485 days ago
Hello Kevin thanks for your replay I really appreciate it, actually the message I got was really weird: "Fatal error in line 0". After I got that error the site was stuck in a blue page, and I couldn't acees any other page on the site. After that I deleted the plugin, the facebook app and I runned an upgrade, and I got the site back. Any advise on how to make the GUID and the User Administration working again? right now I just get the error message: "Invalid Parameter Exception. All files must have an owner".
Simone 485 days ago
For everybody's information:
If you are using the Fisheye menu, you'll need to manually edit this file:
- mod/fbconnect/views/default/page_elements/header.php
and add this line anywher between the <head></head> tags:
- <script type="text/javascript" src="<?php echo $vars['url']; ?>mod/theme_yourtheme/views/default/js/fisheye.js"></script><!-- fisheye menu -->
And the same if you are using a custom favicon:
<!-- include the site favicon -->
<link rel="shortcut icon" href="<?php echo $vars['url']; ?>_graphics/favicon.ico" />
Remember to modify this code and adjust it to your specific needs.
Peace,
~!v@n
Ivan 485 days ago
I don't see any syncing of user profile / status... is it supposed to sync?
sykong 482 days ago
sykong: The profile syncs on login and every 12 hours if you have cron configured and running on your site. The status does not sync (by design) as has already been discussed in this thread.
Kevin Jardine 482 days ago
simone: you have a partial user in your database. The problem was probably caused because the weird error you described prevented the Facebook account creation from completing.
Unfortunately, you are the only person to have reported this "Fatal error in line 0" problem and I have no idea how to reproduce it.
So far as I know, there is nothing you can do to fix your database without doing surgery using phpmyadmin (not recommended). Perhaps install from a db backup or do a new install?
Kevin Jardine 482 days ago
we got a full sized FB profile image in the elgg top bar
I'm experiencing the same problem, the topbar image icon is too large (50x50px). In my case I just modified a little bit the first if statement and added an extra elseif statement in the fbconnect_icon_url() function in the "/mod/fbconnect/start.php" file to disable that big image.
Here is the code:
function fbconnect_icon_url($hook_name,$entity_type, $return_value, $parameters) {
$entity = $parameters['entity'];
if (($entity->getSubtype() == "facebook") && ($entity->facebook_controlled_profile != 'no')) {
if (in_array($parameters['size'],array('tiny','small'))) {
return $entity->facebook_icon_url_mini;
} elseif (in_array($parameters['size'],array('topbar'))) {
// The FB icon is too big to be displayed in the topbar.
// Do nothing
} else {
return $entity->facebook_icon_url_normal;
}
}
}
FB doesn't provide any profile image smaller than 50x50 (pic_square or pic_square_with_logo).
More information here:
http:/
Peace,
~!v@n
Ivan 482 days ago
Hi!
I tried it on my test site with my (rather incomplete) fc account profile and from what I've saw, it works ok.
The most weird behavior is happening now, a couple of days later after implementing the plugin: the interests field had several commas in the end, like this: "Interest1, interest2, interest3,,,,,,,,,," (I suppose they were added one by one in each cron run) and a few hours later after I deleted the extra commas, I found the interests list reversed and a few more extra commas, now in the begging, like this: ",,, interest3, interest2, Interest1". Weird huh?
Ricardo
rbl 479 days ago
When I click the fConnect logo on my home page in IE it works fine, however in Chrome the same click gives me a blank white box. Is this a problem w/ the facebook API?
Also could someone paste some docs on how to set up the Cron job for fb connect?
I think http:/
An example of fbconnect implemented is available at Primary School Teaching
John McLear 479 days ago

Kevin Jardine
Profile
Following
Followers
Pages
Plugins
Just a note - in order to use this plugin using the Facebook terms of agreement, you need to be running cron. The plugin updates the Facebook user information every 12 hours to keep it current.
Kevin Jardine 489 days ago