coddingtonbear / python-myfitnesspal

Access your meal tracking data stored in MyFitnessPal programatically
MIT License
794 stars 138 forks source link

facebook login #31

Closed ellisonch closed 8 years ago

ellisonch commented 8 years ago

I use facebook to login to myfitnesspal. As such, my account doesn't have a password, nor can I add one without disconnecting from facebook.

Is there/can there be a way to use python-myfitnesspal with facebook logins?

coddingtonbear commented 8 years ago

I'm afraid you can't log-in with your Facebook account directly from this library (for reasons that might be clear given that we can't open up a browser window in the library from which you can confirm to Facebook that you'd like to approve the login), but although it might not be obvious, you do always have a non-facebook MyFitnessPal username, and can always set a password.

If you check out your profile page by clicking on your username in the page header where it says "Hi ", you'll see your real username in the URL (and, I think, on the page itself), and you can set a password from your account settings page.

coddingtonbear commented 8 years ago

Let me know if this doesn't get you onto the right track, @ellisonch!

ellisonch commented 8 years ago

FWIW, if you authenticate using facebook, you can't seem to add a password. If you go to the "set a password" page, it just says "Your account is authenticated through Facebook. Please disconnect to create a password."

However, I was able to get it to work by first disconnecting, then adding a password, then reconnecting.
Good enough!