mattsilvllc / messenger-node

fb bot backend
MIT License
0 stars 0 forks source link

planning messenger auth #19

Open owen-d opened 8 years ago

owen-d commented 8 years ago

There are a few steps we need to implement.

curl -X GET "https://graph.facebook.com/v2.6/me?access_token=PAGE_ACCESS_TOKEN \
      &fields=recipient \
      &account_linking_token=ACCOUNT_LINKING_TOKEN"
https://www.facebook.com/messenger_platform/account_linking
      ?account_linking_token=ACCOUNT_LINKING_TOKEN
      &authorization_code=AUTHORIZATION_CODE

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.

owen-d commented 8 years ago

@Yurko-Fedoriv sound good?

Yurko-Fedoriv commented 8 years ago

I still don't get why do we need to go through facebook's account linking, but if it's the way, then ok.

Yurko-Fedoriv commented 8 years ago

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