Hi,

I've just installed the module which is an essential part of the website I am building. Unfortunately, the connection fails:

The Facebook login could not be completed due to an error. Please create an account or contact us directly. Details about this error have already been recorded to the error log.

I checked solutions proposed in related issues,

but I could not solve the issue using what's in there.

Notably, I tried to host the website on an alternative server (host1free) to check whether it would be a server issue (I was initially hosted on the server of my university), but it did not help.

I am a begginer, so I do not get the details, but I understood from the aforementionned posts that some php-extensions have to be installed for the module to work properly (e.g. openssl). I suspect this could be the issue. However, I don't have access to my php.ini file. I have read that I could do this using the .htaccess file.

Could you tell me:

  • Which php extension are required for the module to work?
  • How could I enable them through an .htaccess file?

Thanks in advance.

Comments

vanderlindenma’s picture

I have tried to disable absolutely all the modules except for fb oauth to check whether it was a module compatibility issue, and it still does not work = not a module compatibility issue...

quicksketch’s picture

Category: bug » support
Priority: Major » Normal

Hm, this module doesn't have any special PHP requirements. I think the most likely thing is that you just haven't set up your Facebook API credentials completely yet. Did you follow all the steps for installation in the README.txt file?

vanderlindenma’s picture

Thanks for you quick answer. I followed meticulously point 1 to 7 of the “installation” section of the readme.

Perhaps I should add more details. The module seems to perform just fine in the beginning. Once I click on the FConnect button, I am redirected to facebook website, asked to login and grant access to precisely that information which I asked for when configuring the module.

(Also, when I misconfigure the facebook app, for instance by entering the wrong site domain, I am blocked much further in the process.)

The problem occurs when I am sent back from facebook to my website. Then instead of being connected, I receive the error message I mentioned.

I check drupal status report and pointed out two elements which might have something to do with this issue:

  • PHP 5.3.25
    The phpinfo() function has been disabled for security reasons. To see your server's phpinfo() information, change your PHP settings or contact your server administrator. For more information, Enabling and disabling phpinfo() handbook page.
  • Upload progress Not enabled
    Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC.

Any thoughts?

vanderlindenma’s picture

PS : the error message mentions "Details about this error have already been recorded to the error log." I would love to be able to provide you more information about the error but I do not know how to acces the error log the error log from my server provider is either empty or inexistent... sorry

quicksketch’s picture

Could you check Watchdog? That's under Reports -> Recent Error Messages. That's where FBOAuth would log its errors to.

vanderlindenma’s picture

So there are two kinds of logs somehow related to the module. The first look like it might be related to the fb module rather. But I keep getting it although I disable every component of the fb module ( as I could not make if with fboauth, I gave a try to fb which turned out to be much more of a mess. But then I disabled and uninstalled it fearing that having both modules on my drupal might trigger incompatibilities)

TYPE page not found
DATE Wednesday, May 15, 2013 - 09:19
USER my-admin-id
LOCATION http://my-site/modules/fb/fb.js?mmt6f5
REFERRER http://my-site
MESSAGE modules/fb/fb.js
SEVERITY warning
HOSTNAME 129.59.115.2
OPERATIONS

The second is more neatly a fboauth issue:

TYPE fboauth
DATE Wednesday, May 15, 2013 - 09:19
USER my-admin-id
LOCATION http://my-site/?q=fboauth%2Fconnect&code=AQAxWDS0xYhWANXqB8B43LxbVZFO6lR...
REFERRER http://my-site/
MESSAGE Facebook OAuth could not acquire an access token from Facebook. We queried the following URL:
https://graph.facebook.com/oauth/access_token?client_id=my-fb-app-id&cli...
. Facebook's servers returned an error Connection refused:
(no data returned)
SEVERITY notice
HOSTNAME 129.59.115.2
OPERATIONS

Does not look much informative to me, but hope it can give you a clue...

quicksketch’s picture

Hm, although FBOAuth should work fine without clean URLs, could you try turning them on? That will change your URLs from http://my-site/?q=fboauth%2Fconnect to http://my-site/fboauth/connect. There may be an encoding problem with the URL if it's using the longer form when clean urls are not enabled.

vanderlindenma’s picture

It did not work unfortunately :(. Similar log error (the anonymous factor comes from the fact that I tried to connect from a different browser than the one in which I was logged in as an admin of my drupal) :

TYPE fboauth
DATE Wednesday, May 15, 2013 - 16:34
USER Anonymous (not verified)
LOCATION http://my-site/fboauth/connect?code=AQCcgDOclqTANibL1NDl9i2d8WR1cwuSuQPq...
REFERRER http://my-site/
MESSAGE Facebook OAuth could not acquire an access token from Facebook. We queried the following URL:
https://graph.facebook.com/oauth/access_token?client_id=********&client_...
. Facebook's servers returned an error Connection refused:
(no data returned)
SEVERITY notice
HOSTNAME 129.59.115.2
OPERATIONS

TYPE page not found
DATE Wednesday, May 15, 2013 - 16:34
USER Anonymous (not verified)
LOCATION http://www.******/modules/fb/fb.js?mmt6f5
REFERRER http://www.******/fboauth/connect?code=AQCcgDOclqTANibL1NDl9i2d8WR1cwuSu...
MESSAGE modules/fb/fb.js
SEVERITY warning
HOSTNAME 129.59.115.2
OPERATIONS

vanderlindenma’s picture

Here is a screenshot of my advanced facebook app settings, is there anything I should change?

http://img15.hostingpics.net/pics/563004FBappsetting.png

vanderlindenma’s picture

PS : I am also allowed to set "Auth token parameter" to either "Query String" or "URI Fragment", does it matter?

vanderlindenma’s picture

Sorry to throw information at you, but I guess it is the best way to get to a solution : I also noticed that my app is mentionned as "Your app detail page has not yet been submitted for review." Does it matter for my problem?

vanderlindenma’s picture

I finally ran the debugging tool of facebook app with respect to my web site, and got the following warnings:

Open Graph Warnings That Should Be FixedInferred Property : The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property : The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property : The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
Small og:image : All the images referenced by og:image should be at least 200px in both dimensions, with 1500x1500 preferred. (Maximum image size is 5MB.) Please check all the images with tag og:image in the given url and ensure that it meets the recommended specification.

quicksketch’s picture

I am also allowed to set "Auth token parameter" to either "Query String" or "URI Fragment", does it matter?

Hm, I haven't heard of this option before. It should be query string (which I'm hoping is the default?)

I don't think the other issues you mentioned in #11 and #12 should affect FBOAuth. So from what I can see, I can't tell why FBOAuth would be failing for you.

vanderlindenma’s picture

yes query string is the default setting.

For the record, I should add that I have made sure that my hosting provider allowed for http requests.

Anyways, thanks a lot for your valuable support, I hope I can ultimately figure it out. I will post my solution here if I happen to find one.

vanderlindenma’s picture

Issue summary: View changes

improvement : changed guess for suggest