My Facebook SDK version was 2.1.2 and i upgraded it to 3.0.1. After my code is not working. I just change Facebook SDK files. I didn't change anything in my code.
Here is error: Uncaught OAuthException: Invalid OAuth access token signature. thrown in /home/galeri/domains/**.com/public_html/beta/facetest/开发者_如何学JAVAsrc/base_facebook.php on line 970
I would suggest downgrading to 3.0.0 and then looking at this issue to solve the problem you will get: https://github.com/facebook/php-sdk/issues/376
I did the same as you upgrade from 2.x to 3.0.0 and thankfully this was the only issue.
I definitely won't be upgrading to 3.0.1, there are too many issues.
The guy ptarjan has a habit of closing issues without fully investigating them and doesn't always get to the heart of the bugs. It's working for me and won't upgrade.
Edit: There is even an issue about this, do you check github issues? :
https://github.com/facebook/php-sdk/issues/296
Were you using Oauth to log in before? Check the docs, they describe the oath process EDIT: Here is a link to the page that shows how to authenticate using Oauth
精彩评论