Advertisement:

Author Topic: [Solved] facebook connect trouble  (Read 3768 times)

Rui Branco

  • Newbie
  • *
  • Posts: 23
[Solved] facebook connect trouble
« on: November 27, 2013, 02:38:39 am »
Hello
I'm trying to get into the osclass from facebook account
I configured well facebookconnect but I can not enter the osclass

my site: http://www.astrusados.tk/astru/

Anyone know what's going on?
« Last Edit: November 27, 2013, 06:27:50 pm by Rui Branco »

zoopla

  • Guest
Re: facebook connect trouble
« Reply #1 on: November 27, 2013, 07:37:39 am »
Did you make sure your appId and secret are right?
Double check them in you facebook developer account.
That might be the problem.

Rui Branco

  • Newbie
  • *
  • Posts: 23
Re: facebook connect trouble
« Reply #2 on: November 27, 2013, 11:51:55 am »
Did you make sure your appId and secret are right?
Double check them in you facebook developer account.
That might be the problem.

hello
Yes, I did all the checks and all is well configured, the appId and secret are right.
When I click on the login link <?php fbc_button(); ?> to go to the Facebook account I notice a strange sewed in the address:
Code: [Select]
www.astrusados.tk/astru/?code=AQD0owkD13PQ....
FB returns the giant address but there is something strange
...s.tk/astru/?code=... ?

Rui
« Last Edit: November 27, 2013, 12:01:29 pm by Rui Branco »

MezaTech

  • Newbie
  • *
  • Posts: 2
Re: facebook connect trouble
« Reply #3 on: November 27, 2013, 06:15:24 pm »
Hello All
i am new user with you , but going to be big fan of os script
i face the same problem and found the solution

easily  go to file plugins/facebook/src/base_facebook.php

edit line 134 whick contain

public static $CURL_OPTS = array(
        CURLOPT_CONNECTTIMEOUT => 10,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_TIMEOUT => 60,
        CURLOPT_USERAGENT => 'facebook-php-3.2'
    );


and replace this function with

public static $CURL_OPTS = array(
        CURLOPT_CONNECTTIMEOUT => 10,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_TIMEOUT => 60,
        CURLOPT_USERAGENT => 'facebook-php-3.2',
        CURLOPT_SSL_VERIFYPEER => false,
        CURLOPT_SSL_VERIFYHOST => 2
    );

Hope that is useful for you
Regards
Amr

Rui Branco

  • Newbie
  • *
  • Posts: 23
Re: facebook connect trouble
« Reply #4 on: November 27, 2013, 06:27:26 pm »
Solve my problems
Thank you  8)

strata

  • Sr. Member
  • ****
  • Posts: 411
  • Always good, always...
Re: [Solved] facebook connect trouble
« Reply #5 on: December 31, 2013, 02:45:23 pm »
Thanks, your tips work like charm ..good post :)

carsangrah123

  • Jr. Member
  • **
  • Posts: 59
  • www.carsangrah.com
Re: facebook connect trouble
« Reply #6 on: January 10, 2014, 09:18:17 am »
Hi,

I have also same problem. I followed these steps but after getting confirmation from facebook i am being redirected to my home page without login.
Please help me.

Hello All
i am new user with you , but going to be big fan of os script
i face the same problem and found the solution

easily  go to file plugins/facebook/src/base_facebook.php

edit line 134 whick contain

public static $CURL_OPTS = array(
        CURLOPT_CONNECTTIMEOUT => 10,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_TIMEOUT => 60,
        CURLOPT_USERAGENT => 'facebook-php-3.2'
    );


and replace this function with

public static $CURL_OPTS = array(
        CURLOPT_CONNECTTIMEOUT => 10,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_TIMEOUT => 60,
        CURLOPT_USERAGENT => 'facebook-php-3.2',
        CURLOPT_SSL_VERIFYPEER => false,
        CURLOPT_SSL_VERIFYHOST => 2
    );

Hope that is useful for you
Regards
Amr

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: [Solved] facebook connect trouble
« Reply #7 on: March 06, 2014, 07:58:18 am »
same problem here.. could it be the CURL SSL not being activated in my server?

volunteer

  • Full Member
  • ***
  • Posts: 241
Re: [Solved] facebook connect trouble
« Reply #8 on: March 08, 2014, 01:33:37 am »
my prob was that the app I have created in facebook developers site was still in the sandbox
u gotta make it public before it can be used

byteGator

  • Osclass Hero
  • Sr. Member
  • *
  • Posts: 346
  • Simple Mind is a Beautiful Mind
Re: facebook connect trouble
« Reply #9 on: March 08, 2014, 07:32:15 am »
Hello All
i am new user with you , but going to be big fan of os script
i face the same problem and found the solution

easily  go to file plugins/facebook/src/base_facebook.php

edit line 134 whick contain

public static $CURL_OPTS = array(
        CURLOPT_CONNECTTIMEOUT => 10,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_TIMEOUT => 60,
        CURLOPT_USERAGENT => 'facebook-php-3.2'
    );


and replace this function with

public static $CURL_OPTS = array(
        CURLOPT_CONNECTTIMEOUT => 10,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_TIMEOUT => 60,
        CURLOPT_USERAGENT => 'facebook-php-3.2',
        CURLOPT_SSL_VERIFYPEER => false,
        CURLOPT_SSL_VERIFYHOST => 2
    );

Hope that is useful for you
Regards
Amr

At my site, the plugin is working without this modification.