Shade- / MyFacebook-Connect

A plugin to integrate Facebook with MyBB, letting users login and register through Facebook.
27 stars 24 forks source link

Facebook connect problem #36

Closed Boia11 closed 9 years ago

Boia11 commented 9 years ago

I have follow the istruction but when i try to get link to FB:

screenshot 2014-12-02 15 36 40

screenshot 2014-12-02 15 36 57

But after more test, I haven't found the problem.

Shade- commented 9 years ago

This sounds link another misconfiguration issue. Could you just post a screenshot of your app settings?

Boia11 commented 9 years ago

screenshot 2014-12-05 15 50 04 screenshot 2014-12-05 15 50 17 screenshot 2014-12-05 15 50 25 screenshot 2014-12-05 15 50 29 screenshot 2014-12-05 15 58 41

Boia11 commented 9 years ago

I also try to submit review of facebook app

Shade- commented 9 years ago

Alright I have tested the plugin on your site and I suppose your host does not support server-to-server connections (also known as outgoing connections) within the cURL configuration. This is a requirement and this is why the plugin isn't able to obtain an access token from Facebook. You might contact your host and ask to enable cURL server-to-server connections.

Boia11 commented 9 years ago

I also had the same doubt but in php_info the cURL is enable. This is not correlated?

screenshot 2014-12-05 18 38 46

Boia11 commented 9 years ago

I have ask to my host and the cURL is enable by default. I use CloudFlare with Universal SSL...can this be the problem? that your plugin doesn't support this feature?

M00kaw commented 9 years ago

Hi, I'm having the same question.. We host the site on a dedicated server, and I can't figure out what is meant by "enable cURL server-to-server connections." Could you elaborate?

Shade- commented 9 years ago

Server-to-server connections allows the plugin to communicate and receive authentication tokens from Facebook. The latest versions of cURL have it enabled by default. If the plugin still can't connect with Facebook, you may be using a proxy and you must whitelist Facebook's servers from the proxy itself. There's very little I can do as I never managed a server and I don't know the exact procedures and settings required. I just know that you need cURL outgoing connections with Facebook's server running and operative.

Shade- commented 9 years ago

Besides, I had the chance to look at this one more time, and it appears to be a problem related to ports. Your server must have port 443 open to let it communicate correctly with Facebook. This port is used for SSL connections, ensuring secure communications with Facebook's servers.

If you have direct access to your server, you might open port 443 and see the plugin work again. If you are on a shared hosting, I'm afraid there's little you can do rather than contact them and ask to open this port for you. Most probably, you will have to pay and upgrade your plan, or change host completely.

Boia11 commented 9 years ago

I have ask to my host...for SSL trought cURL and is request SSL certificate. For not spent other money I have set cloudflare for protect and add their Flexible SSL. Can I use this feature and not pay SSL certificate?

macbroadcast commented 9 years ago

Cloudflares free / Flexible SSL just encrypts the connection between your site visitors and CloudFlare, but not from CloudFlare to your server, have you tried a selfsigned cert ?

Shade- commented 9 years ago

A selfsigned certificate is provided within the plugin. Unfortunately, port 443 must be opened, but you don't really need a SSL certificate, which costs A LOT (and when I mean a lot, I mean over 100 bucks). Most hosting services offer port management within their cheapest premium plans; I have just purchased a premium account on hostinger.com for as little as 6 euros per 3 months and port 443 is open, thus MyFacebook Connect works fine.

rehman259 commented 7 years ago

Dear Shade,

I am using MyfacebookConnect (2.2) plugin on MyBB forum(1.6.x). I have just converted my site to SSL, after that my Facebook login is not working.

The request go to facebook and ask for username and password for user and it redirect to my site with the error "An active access token must be used to query information about the current user."

i have tried the solution you have provided above but issue is not resolved yet.

so please let me know what will be the solution, I will be grateful for your help.

this is the forum https://www.propertytribes.com/

Shade- commented 7 years ago

Version 2.2 is deprecated, as its SDK is not supported by Facebook anymore. The latest version available is 3.1 which includes the newest SDK.

rehman259 commented 7 years ago

Thank you for your response Shade.

Actually the FB login was working fine without SSL but it is not working once we converted to SSL. So is there any short fix I can apply to resolved the issue or Do I need to update the plugin? There is a lot of customization is done by developers in current plugin, so if I update then previous code will be gone.

What you think is the best solution in which we can fix as soon as possible?

I look forward to hear from you soon.

Shade- commented 7 years ago

Unfortunately I don't support older versions anymore, sorry. If you decide to customize the stock version, you also need to supply eventual bugs by yourself. Also, it's probably best to ask for new features to me rather than customize my plugins. I'm always open to requests.

rehman259 commented 7 years ago

OK fine. I am using MyBB forum veriosn 1.6. Is MyfacebookConnect 3.1 supported by MyBB 1.6??

Shade- commented 7 years ago

Yes, as long as you add the global_intermediate hook. Read the installation instructions.

From 3.0 onwards there are some major changes to the minimum requirements. Make sure your host is compliant with them. Also, don't forget to save full dumps of both your database and your files.

To update, read the release instructions.

Shade- commented 7 years ago

Nonetheless, I would recommend you to update your MyBB version to the latest available (1.8.11) in order to be secured against malicious attacks. If you feel like your board is too customized to make the big leap from 1.6 to 1.8, update your board to the latest 1.6 version at least.

rehman259 commented 7 years ago

I am using MyBB 1.6 but there is a lot of customization in forum. FB login was working fine but it suddenly not working since two days.

I want to use your FB plugin 3.0. There are some customization in my current FB plugin, Do I need to sync those changes to new Plugin.

How to update the plugin to 3.0?

I look forward to hear from you soon.

Shade- commented 7 years ago

I have listed all the necessary references above.