09-30-2014 06:49 - last edited on 09-30-2014 10:39 by JeremiahFitbit
09-30-2014 06:49 - last edited on 09-30-2014 10:39 by JeremiahFitbit
Hello FitBit Team,
I am a developer and working on a app that involves interacting with social media. One of my freind who is using Fitbit app has told me that in FitBit app you are connecting with social media (user who is logged in fitbit app on mobile) and posting on to user's wall with out connecting to facebook ( with out getting Login and password every time from user ).
My question is how could you connect to social media site (FB or twitter) with out asking password from user. As per my knowledge Offline API for login / sharing are closed by the FB. Then how are u managing it. Not talking about the in build FB app present in mobile.
Is this really possible ? If yes can you guide me in the correct direction.
Thanks,
Shri Hari (zgetshrihari@gmail.com)
09-30-2014 10:38
09-30-2014 10:38
Perhaps you should ask on Facebook's API support forum 🙂 https://www.facebook.com/groups/fbdevelopers
Fitbit isn't doing anything special with Facebook. We use long-term access tokens that we refresh server-to-server as required. https://developers.facebook.com/docs/facebook-login/access-tokens#extending
09-30-2014 21:50
09-30-2014 21:50
Thanks for your quick reply. Yes, i agree with you that i can use long extending tokens from facebook that we can store and refresh it on each user login. But to get token , user will be required atleast once to login to facebook and get the token.
What i think is in FitBit app you are using the Facebook Login only once when user is registered to your App to get his long term access token and save it in DB, and when ever user shares some thing from FitBit, app uses the stored token from the DB to get connect with FB (any other social media) to post on the user wall directly with out allowing user to enter the crdetials again and again. And if user has no token saved in his account then you will ask him to login to facebook from your app to get the access token.
Please correct if i am wrong or missed something.
I dont have fitbit App and device to check this functionality. I asked the same on Stack overflow and FB Developers, but their response did not clear my doubt.
Thanks for help and patience,
Shri Hari,
zgetshrihari@gmail.com