facebook-php-graph-sdk icon indicating copy to clipboard operation
facebook-php-graph-sdk copied to clipboard

Missing headers and body in HTTP Request with Psr17

Open rudyzeinoun opened this issue 3 years ago • 2 comments

When switching to Psr17, the createRequest function only takes $method and $url. The headers and body have to be sent in separately after. This causes all POST requests to fail with permission error since the token is the first missing parameter that is checked.

rudyzeinoun avatar Oct 11 '23 09:10 rudyzeinoun

I think 6.0.1 is broken with this PR

after getting 6.0.1 in a composer update are logs are filling with this when trying to post to FB via joelbutcher/laravel-facebook-graph

Facebook\Exception\AuthenticationException: (#100) 0 does not resolve to a valid user ID in /home/forge/cryptologyrooms.co.uk/releases/20231209142658/vendor/joelbutcher/facebook-graph-sdk/src/Exception/ResponseException.php:101

and seems I might not be the only person effected

https://developers.facebook.com/community/threads/1350894655461720/

dpslwk avatar Dec 09 '23 21:12 dpslwk

I have the same issue, and it is resolved with this contribution. Can it be uploaded to the project?

primnym avatar Mar 26 '24 20:03 primnym