Topic-icon beginner questions

Support Specialist
9 years 3 months ago #50307 by mel
Replied by mel on topic beginner questions

The name imported is in the form fb_151243005456465 it's like the name is not imported at all.

Are you referring to the username? Please make sure to set the JFBConnect > Configuration > General > 'Auto Username Prefix' setting to something other than fb_,g_, such as first.last or firlas.

The birthday as well not imported.

Is automatic registration enabled on your site? Could you temporarily turn it off and set JFBConnect > Profiles > 'Show Profile Fields' to All and 'Show Imported Fields' to Yes to see the values that Facebook has sent back? If it is blank after enabling these settings, please make sure that the Birthday field is not set to restricted in your Facebook account.

there is a way to get a pure url?

Unfortunately, I don't think so. Basically, the profile link that is returned from Facebook depends on how old the FB application is that you're using (based on the version of the Graph API that it can support). If your FB app is newer, that's why you're seeing the link in this format. Coming April 2015, all applications will return the newer style link as applications are being forced to call the newer Graph API versions.

besides that, how about links an existing jomsocial account to facebook?

1. You can add the {JFBCLogin} tag to the page. When already logged in with your Joomla/JomSocial user, it will create an item in our UserMap table to connect the user to the social network.
2. The SCLogin module also provides the mechanism to connect existing users to FB.
3. In the next version of JFBConnect, I am adding a new page for the front-end to see all existing mappings of social networks with the ability to link and unlink to them as well.

I think this answers all of your above questions, but please let us know if you need more clarification.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50323 by alfredopacino
Replied by alfredopacino on topic beginner questions
let's use numbers for the questions, this is beginning tought to indent correctly the quote in the post :)

1. username issue: solved

2. birthday issue: I've done what you say...but I can't see any difference..sorry :/ What that option "Show Profile Fields" to all should do?

3. actually that's a strange behaviour, I checked the db field, there I have pure url..but when I print it to a profile page I get this unevaluated anchor tag. Nevermind about that, I will figure it out by myself.. if it's a unknow behaviour for you too.

4. Let's focus on this: currently I can't see a public method to link an existing account to facebook. Is that normal (I mean for registered and LOGGED users)?
The reason about JFBConnect doesn't take care about the edit profile page (see screenshot)?
www.diigo.com/item/image/51ynl/o1qh
Actually I still don't get the {JFBCLogin} usage, maybe I have to enable another plugin too? It prints nothing (logged users)
The topic has been locked.
Support Specialist
9 years 3 months ago #50326 by alzander
Replied by alzander on topic beginner questions
2) The "Show Profile Fields" is used during a new user registration to let the user edit the profile information that is returned from the social network. When you enable that setting, you'll need to re-register on your site and check the birthday field to see if it's right on the registration form. If so, it means there may be a bug in our automatic import functionality.

3) Let us know how this goes. If the URL is right in the database, that's all we can do.

4) Use {JFBCLogin show_reconnect=true}. That will show the login buttons for networks the user hasn't already associated with. Beyond that, you can use the SCLogin module to show the networks to connect with like you can see from the My Account menu in the top of this site.

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

None
9 years 3 months ago - 9 years 3 months ago #50328 by alfredopacino
Replied by alfredopacino on topic beginner questions
2) if you want you can do some test on my site, tell me and I will send you the credentials, actually it would be great if you could do a quick general checking about JFBConnect settings are alright :)

4) it works :) there are other parameters I can set about this {JFBCLogin}? example: for this specific show_reconnect can I set a specific image?
Major important question I noticed if I "reconnect" a jomsocial account the facebook text field we talking about is not filled
Last edit: 9 years 3 months ago by alfredopacino.
The topic has been locked.
Support Specialist
9 years 3 months ago #50333 by alzander
Replied by alzander on topic beginner questions
2) We can't do this. There are lots of features in JFBConnect and without knowing everything you've configured and how you expect things to work, it's impossible for us to test. Of course, if you run into issues or have any questions about features and functionality, we're always here to help.

4) In the JFBConnect -> Socail -> Examples area, you can see a listing of all available Easy Tags. Search for JFBCLogin and you'll see the parameters available for that tag. image is one and you can create your own custom images and put in the directory shown there.

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

None
9 years 3 months ago #50336 by alfredopacino
Replied by alfredopacino on topic beginner questions
thanks, but you missed the "Major important question" :)
The topic has been locked.
Support Specialist
9 years 3 months ago #50343 by mel
Replied by mel on topic beginner questions

I noticed if I "reconnect" a jomsocial account the facebook text field we talking about is not filled

The connect account button is mainly meant just for connecting accounts. By design, the profile data will not be imported from the new social network until the user logs in via that network.
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50350 by alfredopacino
Replied by alfredopacino on topic beginner questions

mel wrote:

I noticed if I "reconnect" a jomsocial account the facebook text field we talking about is not filled

The connect account button is mainly meant just for connecting accounts. By design, the profile data will not be imported from the new social network until the user logs in via that network.


are you saying it can't be done? Please let's try to find a solution,
As I explained in a previous post, it's essential to get the profile url in case of login with facebook and also in case of reconnect a jomsocial account to facebook both, for my invitation contest system.
The topic has been locked.
Support Specialist
9 years 3 months ago #50362 by alzander
Replied by alzander on topic beginner questions
You can try the following edit. Please understand that this isn't tested and not something we'll be able to help you test, but you're free to try it.

In the /components/com_jfbconnect/controllers/login.php file, around line 51, you'll see:
if ($userMapModel->map($jUser->get('id'), $providerUserId, strtolower($provider->name), $provider->client->getToken()))
                $app->enqueueMessage(JText::sprintf('COM_JFBCONNECT_MAP_USER_SUCCESS', $provider->name));
            else
Update that to:
if ($userMapModel->map($jUser->get('id'), $providerUserId, strtolower($provider->name), $provider->client->getToken()))
            {
                $args = array(strtolower($provider->name), $jUser->get('id'), $providerUserId);
                $app->triggerEvent('socialProfilesOnLogin', $args);
                $app->enqueueMessage(JText::sprintf('COM_JFBCONNECT_MAP_USER_SUCCESS', $provider->name));
            }
            else
That should go through our social plugins and run the normal import.

I hope that helps, and best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50368 by alfredopacino
Replied by alfredopacino on topic beginner questions
That's what I call support! :)
but sadly I double checked, it doesn't work :/
The topic has been locked.