Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook graph API unknown http error

I am attempting to use the Facebook JS sdk to retrieve my friends list via FB.api("/me/friends") , but I keep getting the following error: {"type":"http","message":"unknown error"}

When I view the request in Chrome debugger tools it shows the request as failed, but copying the url and going to it in a new window pulls down my friends list data as expected.

Has anyone seen this before?

like image 964
jaeger Avatar asked Nov 09 '13 22:11

jaeger


People also ask

Is Facebook Graph API deprecated?

Applies to all versions. Facebook Analytics will no longer be available after June 30, 2021. Additionally, we are deprecating the App Dashboard Plugin for Marketing API. For more information visit the Business Help Center.

How do I update my graph API on Facebook?

In the App Dashboard Settings > Advanced, scroll to the Upgrade API Version section.

What does OAuthException mean on Facebook?

OAuthException: If you receive an OAuthException error, it means that Edgar doesn't have the correct permissions to access your Facebook accounts right now. The password may have been changed on Facebook or Facebook may have reset your security session.


2 Answers

This was caused by the Avast security plugin blocking social networks.

like image 94
jaeger Avatar answered Oct 09 '22 04:10

jaeger


I also had this problem and it seems that Facebook doesn't like if you put the protocol on the app domain and site url fields inside app settings. I had https://blabla.... Removing the protocol solved the error for me.

like image 40
BrunoFenzl Avatar answered Oct 09 '22 06:10

BrunoFenzl