Skip to Content Skip to Menu

Getting profile image from facebook to profile image in cb

  • catalincb
  • catalincb
  • OFFLINE
  • Posts: 60
  • Thanks: 2
  • Karma: 0
9 years 7 months ago #261460 by catalincb
I have installed Cb connect plugin last version and cofigured only for facebook.
Works but i have some questions:

1- How can i set a username format? because if i let empty it creates the username like this: FirstName LastName. (with space)
2- I see that it takes some time until he connects to fb some time i get a request timeout. I know that is possible to increase the time in php.ini... but dont know why it's moving so slow.
3- i watched the clip with cb connect and at a moment i have seen that it's possible to add fields like: facebook social plugin. How can i have fields like this ?
4 -How can i take profile image from fb and set it as profile image in cb? i dont have no image downloaded in images/comprofiler :(
Registration : Single sign-on
I dont have enabled image approval

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #261485 by krileon

1- How can i set a username format? because if i let empty it creates the username like this: FirstName LastName. (with space)

Within CB Connect > Parameters > Facebook > Registration you can customize the username format. Start typing and the available social site substitutions will display (this will be fixed in next release to just always show).

2- I see that it takes some time until he connects to fb some time i get a request timeout. I know that is possible to increase the time in php.ini... but dont know why it's moving so slow.

What's moving slow? When clicking the button or when returning from Facebook? or while at Facebook? The HTTP request and the code to process it into a registered user may take a short amount of time, but shouldn't take any longer than a normal registration unless Facebooks API endpoint is going slow.

3- i watched the clip with cb connect and at a moment i have seen that it's possible to add fields like: facebook social plugin. How can i have fields like this ?

That was an old video for an older release. Those don't exist anymore. You'd need to add those using a Custom HTML field by copying the social plugin embed code supplied by Facebook.

4 -How can i take profile image from fb and set it as profile image in cb? i dont have no image downloaded in images/comprofiler

Currently you can't as it's bugged. Facebook is forcing migration to v2 API, which is breaking profile images when using v1 API. I've created a bug ticket for this to fix in next release.

forge.joomlapolis.com/issues/5202


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • catalincb
  • catalincb
  • OFFLINE
  • Posts: 60
  • Thanks: 2
  • Karma: 0
9 years 7 months ago - 9 years 7 months ago #261486 by catalincb
Many thanks!

About the long time:
i click on sign with fb and sometimes i receive :

This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'.

and sometimes is moving normal

Because i use the same account for test fb doesnt ask me about the permissions. so just click to sign with fb and account is created. As i said sometimes after i click ... waiting for site.. and request time out.

Is happening not only at first register .. the same if i log out and login with a account created.

By the way .. how can i remove this after users login :
success
You have successfully logged in
?



I have a field on About tab :
Facebook ID - View Facebook Profile (is a link to the facebook profile)

1- if i click on it i am redirected to fb and there they say that the profile is not available
The url looks like : www.facebook.com/profile.php?id=210297 ....

2- i dont know how get it there. how can be removed?
Last edit: 9 years 7 months ago by catalincb.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #261501 by krileon

i click on sign with fb and sometimes i receive :

This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'.

and sometimes is moving normal

Because i use the same account for test fb doesnt ask me about the permissions. so just click to sign with fb and account is created. As i said sometimes after i click ... waiting for site.. and request time out.

Is happening not only at first register .. the same if i log out and login with a account created.

Strange, could just be your server unable to keep up with the demand. Can't see any reason a simple HTTP request would cause that though. I suggest contacting your host and having them check error log to see if maybe something is failing as well as check performance to see if your servers CPU and memory are spiking.

By the way .. how can i remove this after users login :
success
You have successfully logged in
?

That's a part of CBs normal login behavior. You'd need to translate the LOGIN_SUCCESS language string to an empty string to suppress its display.

1- if i click on it i am redirected to fb and there they say that the profile is not available
The url looks like : www.facebook.com/profile.php?id=210297 ....

I'm not sure why. It displays a users profile perfectly fine for me when I click it. That's also the URL Facebook uses to link to profiles by ID, which Facebook it self also uses.

2- i dont know how get it there. how can be removed?

You can set the field to not display on profile within CB > Field Management if you want.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • catalincb
  • catalincb
  • OFFLINE
  • Posts: 60
  • Thanks: 2
  • Karma: 0
9 years 7 months ago - 9 years 7 months ago #261508 by catalincb
1- i will contact my host. hope is from them and will be fixed.
a question.. could be from the joomla template ?

2 - about that facebook id:
Cb connect creates this :
www.facebook.com/profile.php?id=2102971723175268
and that id is not my id.

my id is : www.facebook.com/profile.php?id=100003873815064

i dont see that looks the same. i dont know how cb connect takes it i used a site: findmyfacebookid.com/ .. and tooked the right one
Last edit: 9 years 7 months ago by catalincb.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago - 9 years 7 months ago #261516 by krileon

1- i will contact my host. hope is from them and will be fixed.
a question.. could be from the joomla template ?

Not likely. The error implies PHP is taking too long and hitting its timeout limit. You can try increasing the timeout within php.ini by adjusting max_execution_time.

2 - about that facebook id:

Edit your user within CB > User Management and see what the Facebook ID field value is. That's where it gets its value for the URL. That is the ID Facebook API gave CB Connect. They may have changed how this works with v2 API as CB Connect is using v1 still; so it's possible there's a bug present.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 9 years 7 months ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum