This worked for me up until about a month ago. Here are the steps to reproduce:

  1. Create a login provider by using the FB default presets and adding the pub/private keys from developers.facebook.com/apps
  2. Go to /user/1/connections and successfully connect with Facebook
  3. Go to /admin/structure/oauthconnector/devel, enter http://graph.facebook.com/me as the Endpoint, and select Facebook as the Provider

The response displayed on the screen is:

array(
  'error' => TRUE,
  'error_str' => 'No result, see watchdog.',
)

The error in the logs is

Bad request of http://graph.facebook.com/me: Bad Request

I also tried using https://www.googleapis.com/oauth2/v1/userinfo as the endpoint after a successful Google connection and got the same errors.

Comments

jlyon’s picture

Issue summary: View changes

clarification

TripleEmcoder’s picture

A hint to others having this issue. Some reasons might be:
* Facebook app settings not propagated yet on some of their servers (applies to new apps)
* a space at the end of the endpoint URL (yes, this has happened to me...)

lupus78’s picture

Try it with HTTPS!
https://graph.facebook.com/me
this worked for Facebook for me.

lupus78’s picture

Issue summary: View changes

added google sentence