Open owen-d opened 8 years ago
@Yurko-Fedoriv sound good?
I still don't get why do we need to go through facebook's account linking, but if it's the way, then ok.
also, you have full access to the database from the boot side... why do you need additional endpoint? just grab some user token from it and submit the food normally
There are a few steps we need to implement.
nix.com/.../link-fb-bot
or smtnhttps://www.example.com/v1/authorize?redirect_uri=CALLBACK_URL&account_linking_token=ACCOUNT_LINKING_TOKEN
page scoped id
via the following:Note: we don't actually use the authorization code, but it's needed to signify to facebook that the op was successful. I'll be randomly generating them.
authorization_code
from above to the account linking callback to messenger-node's account-linking callback mechanism, but we won't do anything with it.Extra notes/requirements:
scoped_user_id
, and either log a food (if a user is attached to that scoped id) or just return the nutrients.