Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Need CB connect API

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 6 months ago #280140 by timstohr
Need CB connect API was created by timstohr
Hi Kyle,

Do you have information on the API calls that need to be made to login a user into CB? We have an app that is supposed to send API calls to somewhere to confirm that a user is logged into Facebook and thus enables him/her to log into the website.

You had written when you release CB connect 7 that some APIs had been updated. Where can I find the information for the above?

Thanks

Tim

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago #280169 by krileon
Replied by krileon on topic Need CB connect API
CB Connect handles the entire authentication workflows. There's no endpoint in it to confirm they're logged in with Facebook. Review CB Connect source for its API usage. Your usage needs aren't very descriptive so don't know what more to advise, sorry.


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.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 6 months ago - 8 years 6 months ago #280183 by timstohr
Replied by timstohr on topic Need CB connect API
:) I just need to find the API documents for CB Connect. I could only find the old documentations and could not find anything for the API that does the normal authentification (only the registration API).

We have the stuff on the app that checks if user is logged into facebook, so we only need to tell cb connect that the user is indeed logged in.
Last edit: 8 years 6 months ago by timstohr.

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

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 6 months ago #280206 by timstohr
Replied by timstohr on topic Need CB connect API
Here is what my app developper (who has included the Facebook login onto the app and now just needs an API to tell the server (ie CB) to log the user in) tells me:
Nugyen Thai: as for push notificaition register api,http://xx.xxx.xx.xxxx:xxx/apiClient/reg,,, “ is used, what can be used for login just like push notification register api?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago - 8 years 6 months ago #280218 by krileon
Replied by krileon on topic Need CB connect API
You need to utilize CB API to login or register a user. CB Connect handles the entire workflows and is mobile compatible so I've no idea why you even need an app to do this.

What I mean by entire workflows is it handles the redirect to Facebook, the redirect back, the authentication, the registration, and the login. There's no API for this. The API available is simply setting up the provider so authenticated HTTP calls can be made to the providers API endpoints.

If your developer needs examples for login, registration, profile edit, etc.. it's all in the below file.

components/com_comprofiler/plugin/user/plug_cbconnect/component.cbconnect.php

If you need to be able to register or login via a URL you can use CB Auto Actions for that by setting triggers to None and using the direct URL to the action.


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: 8 years 6 months ago by krileon.

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

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 6 months ago #280234 by timstohr
Replied by timstohr on topic Need CB connect API
Hi Kyle,

I didnt understand what you meant with "If you need to be able to register or login via a URL you can use CB Auto Actions for that by setting triggers to None and using the direct URL to the action."

What did you mean with the direct URL to the action?

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

Moderators: beatnantkrileon
Powered by Kunena Forum