Topic-icon beginner questions

Active Subscriptions:

None
9 years 4 months ago #50252 by alfredopacino
- Hi, I've just installed jfb connect, but I'm not sure about if it has substituted the default jomsocial facebook login system, how can I check?
I've disabled "System - Jomsocial Facebook Connect" but in JFB Error Check I still see "Another Facebook extension is installed, including the Facebook Javascript library, and may conflict"

- How can I be sure the facebook users on my site are still able to login with facebook? (some of you told me about a "import" system of the facebook users from jomsocial in jfb connect)

- How can I check in php if the user is a facebook user or he linked his jomsocial profile to his facebook profile and get his facebook numeric ID?
Basically I need something like
$isFacebookUser(){}
to use in jomsocial script \components\com_community\templates\default\profile.about.php
The topic has been locked.
Support Specialist
9 years 4 months ago #50262 by alzander
Replied by alzander on topic beginner questions

- Hi, I've just installed jfb connect, but I'm not sure about if it has substituted the default jomsocial facebook login system, how can I check?
I've disabled "System - Jomsocial Facebook Connect" but in JFB Error Check I still see "Another Facebook extension is installed, including the Facebook Javascript library, and may conflict"

Please make sure you also disable the Facebook integration within JomSocial in the Configuration area. There's a setting to specifically use JFBConnect in their Facebook settings area that should be enabled.

- How can I be sure the facebook users on my site are still able to login with facebook? (some of you told me about a "import" system of the facebook users from jomsocial in jfb connect)

Once the Social Profiles - JomSocial plugin is enabled, go to the JFBConnect -> Usermap area and click "Import Users". That will import any previous connections from JomSocial into JFBConnect. Then, of course, test.

- How can I check in php if the user is a facebook user or he linked his jomsocial profile to his facebook profile and get his facebook numeric ID?
Basically I need something like

To get the user's ID, use:
JFBCFactory::usermap()->getProviderUserId($jUserId, 'facebook');
If that returns an ID, that's the ID that Facebook provided for the user. However, please note that that's not their actual Facebook User ID. Facebook only returns app-specific User Ids, which means you can't determine their actual User ID anymore as that can be a privacy issue.

I hope that helps, but if you need anything else, just let me know.

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

None
9 years 4 months ago #50266 by alfredopacino
Replied by alfredopacino on topic beginner questions
ok sorry for the newbie question I didn't see that option in jomsocial config.

About the facebook id, wait a second: are you saying I can't make a facebook icon anchor to a fb profile in a jomsocial profile page? I specifically asked for this and you said "There are multiple ways"!
www.sourcecoast.com/forums/jfbconnect/jf...-to-jomsocial#p50119
Basically that's why I bought JFBConnect, that's the feature I need!
The topic has been locked.
Support Specialist
9 years 4 months ago #50267 by alzander
Replied by alzander on topic beginner questions
Ahh.. sorry for the confusion. "Linking" can mean many things, like making it so the user can link his Facebook account to his existing JomSocial account so that he can login using either later.

For showing the link to the user's Facebook profile, you can create a "Facebook Profile URL" field in JomSocial and configure JFBConnect to import the user's Profile Link into that field. That would be the easiest method I can think of and would even allow users that didn't authenticate with Facebook to have an option to fill in that field if they wanted.

The Facebook ID of the user is still obscured by Facebook for various reasons, but it doesn't sound like the User ID is actually what you want.

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

None
9 years 4 months ago #50272 by alfredopacino
Replied by alfredopacino on topic beginner questions

alzander wrote: Ahh.. sorry for the confusion. "Linking" can mean many things, like making it so the user can link his Facebook account to his existing JomSocial account so that he can login using either later.

For showing the link to the user's Facebook profile, you can create a "Facebook Profile URL" field in JomSocial and configure JFBConnect to import the user's Profile Link into that field. That would be the easiest method I can think of and would even allow users that didn't authenticate with Facebook to have an option to fill in that field if they wanted.

The Facebook ID of the user is still obscured by Facebook for various reasons, but it doesn't sound like the User ID is actually what you want.

I hope that helps,
Alex


I noticed the confusion, but now I think you get it. So there is a method to get the fb profile url in jfb connect right?
Let me explain the whole thing in few words: I will do an "invitation contest" (the user who invites the greater amount of friends on my site using other social network will win a real price)
So it's really important check somehow the invited users are real person and not fake accounts made by himself.
I thought about this method: invited and inviters have to link their jomsocial profile to a real facebook profile (to prove they are real persons). So I need to show a "Facebook Profile URL". But it shouldn't be just a jomsocial text field (in this way the users could fill it with a random profile url!),
The field should be filled just from JFBConnect in case the jomsocial user links his profile to fb (or he login with fb).

In other words, I don't need the numeric ID itself, I just need a method to get the facebook profile url of the users.
This can be done?
What do you think about the whole 'method'? Do you think it's a good technique or you can find any logic 'fault'?
The topic has been locked.
Support Specialist
9 years 4 months ago #50288 by alzander
Replied by alzander on topic beginner questions

The field should be filled just from JFBConnect in case the jomsocial user links his profile to fb (or he login with fb).

I'm pretty sure you can make hidden, non-editable fields in JomSocial. If so, just do that and have JFBConnect import the profile URL into that field. You'll be able to see it in the admin area, but front-end users won't.

For invited friends, you will have a more difficult time if they don't register as you won't be given their real ID. We *try* to use some ways to make the link in the Facebook Requests area work and go to their profile, but it's very hit or miss.

I hope that helps, but if you have any questions, just let me know.

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

None
9 years 4 months ago #50291 by alfredopacino
Replied by alfredopacino on topic beginner questions

alzander wrote:

The field should be filled just from JFBConnect in case the jomsocial user links his profile to fb (or he login with fb).

I'm pretty sure you can make hidden, non-editable fields in JomSocial. If so, just do that and have JFBConnect import the profile URL into that field. You'll be able to see it in the admin area, but front-end users won't.


I'm sorry but I still don't get if I can accomplish what i want.
What I meant in this screenshot is a facebook icon links to a the facebook profile url
www.diigo.com/item/image/51ynl/4mqw
I need that in frontend, why you saying the users wont be able to see it?The readonly stuff it's a problem of mine, let's don't talk about this.
I'm a developer so I can totally write down few lines in jomsocial overrides, but I don't get how JFBConnect could fill this field? If JFBConnect can autofill that text field you're talking about with the real facebook profile url, my problem is solved. But I can't figure it out IF and HOW it works. I truly hope there is a way..

For invited friends, you will have a more difficult time if they don't register as you won't be given their real ID. We *try* to use some ways to make the link in the Facebook Requests area work and go to their profile, but it's very hit or miss.

I'm sorry but here I have some translation troubles, could you explain me more simply? :)
The topic has been locked.
Support Specialist
9 years 4 months ago #50292 by alzander
Replied by alzander on topic beginner questions
In the JFBConnect -> Profiles area, you can configure how the user's profile data is imported into JomSocial. One of those fields from Facebook is something like "Profile Link".

Once that's being pulled in, you can use an override to check if the field is set and show the Facebook image with the link that was imported however you want.

I'm sorry but here I have some translation troubles, could you explain me more simply? current/smile

Sorry for the confusion. I don't think it really matters since you're thinking of trying to make the referred user's register on the site. If you do that, you'll be able to view their profile with the link you set above.

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

None
9 years 4 months ago #50294 by alfredopacino
Replied by alfredopacino on topic beginner questions
thanks god it can be done :D glade to see it
I will try my method
The topic has been locked.
Active Subscriptions:

None
9 years 4 months ago #50295 by alfredopacino
Replied by alfredopacino on topic beginner questions
I've done a quick try:
those my settings
www.diigo.com/item/image/51ynl/py8q
The name imported is in the form fb_151243005456465 it's like the name is not imported at all.
The birthday as well not imported.
The facebook field is filled with html code like
<a href="https://www.facebook.com/app_scoped_user_id/15124...004185/" target="_blank" rel="nofollow">https://www.facebook.com/app_scoped_user_id/15124....4185/</a>
way better than nothing but there is a way to get a pure url?


____________

besides that, how about links an existing jomsocial account to facebook?
www.diigo.com/item/image/51ynl/o1qh
this is my edit page, here once there was the jomsocial facebook button..
The topic has been locked.