CasperLaiTW / laravel-fb-messenger

Laravel Facebook Messenger Provider
MIT License
105 stars 27 forks source link

Account linking callback #54

Closed jackcruden closed 7 years ago

jackcruden commented 7 years ago

I am not getting any callback from Facebook in the debug view when I 'link' my account. Not sure if this is a bug or this functionality hasn't been built in yet. https://developers.facebook.com/docs/messenger-platform/account-linking Thanks

CasperLaiTW commented 7 years ago

Hi @jackcruden

I'm sorry it's not bug, I'm only built account linking button.

I am no environment to link OAuth Service.

I think you want to get webhook is this, Account Link Webhook?

I can make the handle to catch this webhook, and give you data

{
  "sender":{
    "id":"USER_ID"
  },
  "recipient":{
    "id":"PAGE_ID"
  },
  "timestamp":1234567890,
  "account_linking":{
    "status":"linked",
    "authorization_code":"PASS_THROUGH_AUTHORIZATION_CODE"
  }
}    

Is it you want?

jackcruden commented 7 years ago

Oh, I assumed it was sent to the same webhook URL as the other 'subscriptions'. It looks like it's registered here.

Thanks!

jackcruden commented 7 years ago

It would be a cool addition to the package though!