botman / driver-facebook

BotMan Facebook Messenger Driver
MIT License
71 stars 72 forks source link

Add Message Account Linking event to Facebook Driver #92

Closed stevenay closed 5 years ago

stevenay commented 5 years ago

To enable the account linking process on Messenger, we need to listen "messaging_account_linking" event on Botman. For example;

$botman->on('messaging_account_linking', AuthController::class . '@handleAccountLinking');

So, in this pull request, I've added MessagingAccountLinking Facebook event class and added account_linking switch-case in getEventFromEventData method.

codecov[bot] commented 5 years ago

Codecov Report

Merging #92 into master will increase coverage by 0.08%. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master     #92      +/-   ##
===========================================
+ Coverage     71.32%   71.4%   +0.08%     
- Complexity      477     479       +2     
===========================================
  Files            49      50       +1     
  Lines          1332    1336       +4     
===========================================
+ Hits            950     954       +4     
  Misses          382     382
Impacted Files Coverage Δ Complexity Δ
src/Events/MessagingAccountLinking.php 100% <100%> (ø) 1 <1> (?)
src/FacebookDriver.php 84.37% <100%> (+0.16%) 75 <0> (+1) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5ccdd07...54818be. Read the comment docs.