2

I have installed HybridAuth module for social login (Only Facebook & Google) and It is working fine.

I need the same functionality for mobile apps. Like the user can able to login using the social accounts from mobile apps also.

Please suggest me how to do. Is it possible to do with HybridAuth module or I need to do different way?

  • Hi All, I am also looking for the same, Please give me some idea to resolve this using HybridAuth. – visabhishek Apr 28 '17 at 10:29
2

I was also looking for functionality that you needs, but after wards i tried to implement service for social sign in using Hybridauth module and i succeed.

Try this https://github.com/rathodhiren9/hybridauth-service.git

Note : Its my own implementation and working fine using Poster/Postman. But you need to test in mobile application on your own.

  1. Place this module folder in /sites/all/modules/custom and give full permissions if you are using Linux/Unix.

  2. Look for Hybridauth Services in you all module list from Admin pannel of drupal 7 and install/activate it.

  3. Now goto structure/services and add new endpoint if you don't have (remember Path to endpoint will be used in your URL call of service from mobile app).

enter image description here

  1. After that you need to add Resources as per you requirement and for this service you need to check "hybridauth" resource and "connect" action from available resources and save the configuration.

  2. Now this service will work from URL like /domainname/path-to-endpoint/hybridauth/connect. Be sure that url of your domain must match with your social media app's url that you are using for facebook or google

  3. If your done well all the steps then you surly will test the service from Postman or Poster tools, But you need to get access token which will be an array of user data came from Facebook or Google and you will easily get it by debugging Hybridauth module's hybridauth.pages.inc file.

Hope this may be helpful.

1

Use Services Drupal module and use the hybridauth endpoint with JSON data.

  • Kalpan, could you please explain what the OP meant by mobile apps ? He mentioned that it works only for Facebook & Google, so what are these "mobile apps" ? Thanks, – JohnDoea Jan 6 '16 at 8:48
  • Mobile apps can use the endpoint of the REST services made using Services Drupal module. For login using Facebook or Google at Mobile Application one need to configure Service endpoint to bridge the mobile and drupal application to share the session – Kalpan Jan 6 '16 at 8:54
  • Ohhh, these are the mobile versions of Facebook & Google? – JohnDoea Jan 6 '16 at 8:55
  • 1
    Mobile Andriod or IOS application to connect with your website or server application to login with Facebook or Google. – Kalpan Jan 6 '16 at 9:12
  • Thanks for your valuable response Kalpan. I'm new to services. I'm not clear and don't know how to do. So, can you please explain more regarding this? Thanks, Selva – vgsbharathi Jan 6 '16 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.