+ Start a Discussion
jesus.cantero.chatt1.3952321544005415E12jesus.cantero.chatt1.3952321544005415E12 

Salesforce SDK and Facebook SDK integration Android

Actually I'm developing Android app that use Salesforce SDK to get data from Salesforce.com. My user are Customer Portal license wich Facebook single sign on. Thats work ok. My users can sign in into my app using Facebook and use Rest API with Android SDK. In this scenario, is It possible to access a Facebook data using Facebook SDK or Facebook graph API directly?
Best Answer chosen by jesus.cantero.chatt1.3952321544005415E12
akhilesh_sfdcakhilesh_sfdc
You can use this Apex API to get the facebook session token for the user: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_class_Auth_AuthToken.htm#apex_class_Auth_AuthToken

You should then be able to use the Facebook SDK and graph API with that session.

All Answers

akhilesh_sfdcakhilesh_sfdc
You can use this Apex API to get the facebook session token for the user: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_class_Auth_AuthToken.htm#apex_class_Auth_AuthToken

You should then be able to use the Facebook SDK and graph API with that session.
This was selected as the best answer
jesus.cantero.chatt1.3952321544005415E12jesus.cantero.chatt1.3952321544005415E12
Thank you @akhilesh_sfdc, and Sorry for delay but I was on holidays. This answer has been very herlpful to me. Now I'm trying to use the Facebook Accestoken with de Android Facebook SDK.