vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - Facebook Connect - Allow your users to login with their Facebook account (https://vborg.vbsupport.ru/showthread.php?t=198499)

Boots 03-12-2009 06:06 PM

I'm more interested in Google Connect :) Make a mod for that :D

frogster 03-14-2009 05:14 PM

Quote:

Originally Posted by TriMe
The grabber doesnt work if your logged in through Facebook. If you log out, then invite.. it works. Strange. Any suggestions on how to fix? I would love both to work
EDIT*** Correction. As long as your addon is enabled, the grabber won't work. Regardless if someone is connected normally without a Facebook account or not. Nutz!!

Quote:

Originally Posted by sllik (Post 1683572)
I could take a look at it tomorrow... no promises though


I get the same error when using fb connect with a fb grabber...apparently it's because two facebook libraries are installed and you have to comment out "require" somewhere but i have no clue where...

Trime / sillk /anyone was there aresolution to this please help

Fatal error: Cannot redeclare class Facebook in /home/content/*/*/*/*******/html/app/webroot/forum/includes/facebook/facebook.php on line 37

tpearl5 03-14-2009 10:44 PM

Did anyone notice that the 'publish' button on the popup that comes up when you post a message has stopped working?

It also used to ask you if you wanted a single line or not - that is gone

filt 03-15-2009 04:35 AM

No ideas on how to fix the error with users unable to connect with an existing username?

muratyamac 03-17-2009 06:51 AM

i have succesfully installed the plugin but can anyone suggest me what to do with the canvas in the facebook. it's standing empty in there

P3R3 03-17-2009 10:03 PM

Quote:

Originally Posted by filt (Post 1768444)
No ideas on how to fix the error with users unable to connect with an existing username?

I am wondering this as well. I am on 3.8.1

fmckinnon 03-17-2009 10:26 PM

muratyamac - I think the canvas is irrelevant, doesn't matter ... doesn't ever really show a page or anything - it's not meant to be viewed that way. From what I'm reading here and the other thread, this mod is not working for anyone until some updates come out - this since the most recent FB update last week.

muratyamac 03-17-2009 10:50 PM

Quote:

Originally Posted by fmckinnon (Post 1770766)
muratyamac - I think the canvas is irrelevant, doesn't matter ... doesn't ever really show a page or anything - it's not meant to be viewed that way. From what I'm reading here and the other thread, this mod is not working for anyone until some updates come out - this since the most recent FB update last week.

mine is pretty well working i had 5 register today only

P3R3 03-17-2009 11:03 PM

We put together a fix for the user issue. There was an var mapfp that was not being set.

We changed the Map FB User to:

Code:

if (!empty($_POST['fbuid']))
{
        require_once('./includes/facebook/facebook.php');

        if ($vbulletin->facebook == null)
                $vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']);
               
        $fbuid = intval($vbulletin->facebook->get_loggedin_user());

        if ($fbuid > 0 && intval($_POST['fbuid']) == $fbuid)
        {
                //map fbuser to vbuser
                $vbulletin->db->query_write("
                        INSERT IGNORE INTO " . TABLE_PREFIX . "fbuser
                                (fbuid, userid)
                        VALUES
                                (" . $fbuid . ", " . intval($vbulletin->userinfo['userid']) . ")
                ");
        }
}

Unfortunately there is another issue that the fb breaks all the AJAX functions. None of the ajax stuff works so I added the lines:
Code:

<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>

back in to fix this

But there is an error with facebook which we cannot resolve that breaks the publish newsfeed functionality.

mykkal 03-17-2009 11:54 PM

Quote:

Originally Posted by filt (Post 1768444)
No ideas on how to fix the error with users unable to connect with an existing username?

Please let me know how you resolved this...
Quote:

Originally Posted by P3R3 (Post 1770754)
I am wondering this as well. I am on 3.8.1

Quote:

Originally Posted by P3R3 (Post 1770781)
We put together a fix for the user issue. There was an var mapfp that was not being set.

We changed the Map FB User to:

Code:

if (!empty($_POST['fbuid']))
{
    require_once('./includes/facebook/facebook.php');

    if ($vbulletin->facebook == null)
        $vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']);
       
    $fbuid = intval($vbulletin->facebook->get_loggedin_user());

    if ($fbuid > 0 && intval($_POST['fbuid']) == $fbuid)
    {
        //map fbuser to vbuser
        $vbulletin->db->query_write("
            INSERT IGNORE INTO " . TABLE_PREFIX . "fbuser
                (fbuid, userid)
            VALUES
                (" . $fbuid . ", " . intval($vbulletin->userinfo['userid']) . ")
        ");
    }
}

Unfortunately there is another issue that the fb breaks all the AJAX functions. None of the ajax stuff works so I added the lines:
Code:

<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>

back in to fix this

But there is an error with facebook which we cannot resolve that breaks the publish newsfeed functionality.

Is this for resolving "associating existing user accounts"?
Is the original coder helping?


All times are GMT. The time now is 08:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02740 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete