botman / botman/driver-facebook

Webhook Url verification is returning with additional string

Open
#116 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
71
Forks
72
PR merge metrics
No merged PRs in 30d

Description

I am trying to verify my webhook url, however I am getting webhook_validation_error
Here is my code:

```
$config = [

'facebook' => [
'token' => 'page-token',
'app_secret' => 'app-secret',
'verification' => env('VERIFY_TOKEN')
]

];

DriverManager::loadDriver(FacebookDriver::class);

$botman = BotManFactory::create($config);

$botman->listen();
```
As noticed aboved I am getting additonal string added on the hub_challenge request. How will I able to solved this problem?

Contributor guide

Open the contributing guide

Research direction

Reproduce the webhook verification request using the PHP configuration shown and inspect FacebookDriver's handling of the hub_challenge response. Confirm the expected response format and identify why an additional string is returned; done means the verification response contains only the required challenge value.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.