rodrigoprimo / social-connect

WordPress plugin for signup/login using social media providers.
http://wordpress.org/extend/plugins/social-connect/
GNU General Public License v3.0
73 stars 40 forks source link

Issue with Facebook Login #4

Closed vbk closed 13 years ago

vbk commented 13 years ago

I am unable to connect with Facebook connect. It is redirecting to Login page .

WordPress version : 3.2.1 Plugin Version : 0.7

markadrake commented 13 years ago

Sorry to ask you for more specifics but could you give me a little more detail about what you're experiencing?

Example - I click the facebook icon to log in, the window appears, but it's stuck at the login page. Here's a screenshot: [url]

Or - I click the facebook icon to log in, the window appears, logs me into facebook, closes the window, but redirects my main browser back to the login page. I'm using [browser name, version] and see [yes / no] javascript errors: [errors]

This would offer us enough detail to start looking into the problem for you.

vbk commented 13 years ago

markusdrake ,

Sorry for not being specific in my original message

I could able configure other Logins like Google, yahoo,twitter with this plugin including Facebook. When a user try to log with facebook, It is accepting authentication details , but could not able to sign-in and redirecting to login page

Recently I hvae reported the error on WordPress forums and on thenbrent's advise I have installed a latest version released a couple of days ago . That throws a new error like . Just like this,post 3

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/fvinuser/public_html/wp-content/plugins/thenbrent-social-connect-e1b1bc6/social-connect.php on line 75

This is the URL ffav dot in/wp-login.php . I got a reply from @Thenbrent that he could able to reproduce the problem and he will be solving it today or tomorrow

I can provide you the ftp details if you wish

Thank you!

markadrake commented 13 years ago

This error:

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/fvinuser/public_html/wp-content/plugins/thenbrent-social-connect-e1b1bc6/social-connect.php on line 75

Probably means on line 75 of social-connect.php there is a line of code similar to this:

include('http://www.url.com/path/to/file/name.php'); or file_get_contents('http://ww.url.com/path/to/file/name.php');

If this is true, try changing it to the correct relative URL without using 'http://www...'. This functionality is typically turned off in hosting environments.

Let me know if this resolves your current error.

I apologize but I'm on a business trip at the moment and won't have access to a laptop until this weekend but I'll be sure to look into the issue more and follow this thread during the weekend.

vbk commented 13 years ago

Sorry Mark ! This is the line I found in 75 :

$fb_json = json_decode( file_get_contents("https://graph.facebook.com/me?access_token=" . $_REQUEST[ 'social_connect_access_token' ]) );

Tried removing 'https' . No result

thenbrent commented 13 years ago

vbk, I didn't realise the error message had changed. I've changed line 75 as per the discussion here: http://wordpress.org/support/topic/if-you-are-having-problems-with-connecting-to-facebook?replies=9

Can you download the latest version and try again?

I fixed the wp-login.php redirect problem for Twitter but am not confident it is fixed with Facebook yet.

markadrake commented 13 years ago

I concur, that line is opening up a connection directly to facebook's server and your web host is setup a little differently. Download the updated files and upload them to your web host and let us know how it goes for you, and (crosses fingers) if the error message goes away.

vbk commented 13 years ago

This is the feature rich plugin that every site which is need of Single SignOn.I have tried new version(thenbrent-social-connect-0.7-0-g22b5aaf.zip). The error changed to line 72

*Update : Success ! Working with thenbrent-social-connect-4a95344 version.

Apologies for troubling both of you and thanks for fixing the problem. I have some feature requests, if you don't mind to accept

thenbrent commented 13 years ago

Great to hear! I'll release a new version soon. I don't have time to implement any feature requests and it sounds Markus is pretty strapped for time too, but you can always ask. :)