Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Graphi API user Request returns 400 Bad Request

I have two Facebook applications (websites) using the OAuth login from Facebook functionality. One works, the other gives me a 400 error when I request the user data. The request looks like this:

https://graph.facebook.com/me?fields=id,name,email,first_name,last_name,username,locale,location&access_token=[token returned by earlier calls]

Both websites use the exact same code (but get their app IDs and app secret from a db call). The token request and token check are returning OK, it's when I go ahead and ask for the user data, then I get an error.

Ideas? TIA, Owen

like image 802
Owen Mortensen Avatar asked Aug 14 '26 05:08

Owen Mortensen


1 Answers

The problem has to be with the access token. Try debugging the access token to confirm.

like image 193
ben_joseph Avatar answered Aug 19 '26 05:08

ben_joseph



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!