function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dman383dman383 

How to use Facebook to login mobile app instead of sfdc login?

Have customer where we need to build a native mobile app for their customers to connect with them.  they want to allow their customers to use facebook/gmail to login to app instead of requiring a salesforce/customer portal login.  How can we achive this?  Using Sites is too slow so we need to use API, but Sites doesn't have an api.  The only workaround we can think of is hardcording a salesforce login into the source code, then enabling login by Facebook/Gmail.  But this doesn't seem like an ideal solution since if the password is changed, we would need to change the code.  Anybody come across this issue? Thanks

Gaurav KheterpalGaurav Kheterpal

It's possible using FB oAuth. Refer below links for details.

 

http://techblog.appirio.com/2010/07/using-salesforcecom-oauth-playground.html

https://code.google.com/p/sfdc-oauth-playground/

 

Hope that works for you.

 

Cheers!
Gaurav