vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - Facebook Connect - Update for Facebook PHP SDK (v.3.0.0) (https://vborg.vbsupport.ru/showthread.php?t=270219)

Taringa! CS 09-24-2011 11:18 PM

Quote:

Originally Posted by mtbikemike (Post 2249626)
Facebook cookies and vb cookies get all convoluted when testing. It makes it worse that sometimes FB doesn't clear out its cookies when logging out. Working on a fix now.

Great! Waiting that fix

Thanks for your work

mtbikemike 09-25-2011 01:32 AM

Tore apart the code and debugged all day long. There's a weird bug in the persistent cookie that Facebook sets which make logging out randomly break. This in turn shows the user's avatar when they are in fact logged out. I have a fix, but it's going to take a while to remove all the debugging hooks and piece the code and templates back together.

Aiming for sometime tomorrow.

mtbikemike 09-26-2011 01:40 AM

Just released 3.0.4 and it's looking pretty solid on my machine. Had to flip the code to rely on javascript for FB logged in status. This should speed things up a bit. But then again, might cause problems on lower end browsers or sites with a ton of javascript and external references.

See the change log for details on what's new.

A working demo can be tested out here.

Thanks in advance for any bug reports. :)

unp 09-26-2011 07:35 AM

3.0.4 Not working for me, Firebug showing this error message:

Quote:

FB.provide is not a function
all.js()all.js (line 4)
[Break On This Error] FB.provide('Array',{indexOf:function(a...ength;c<d ;c++)a[c]=b[c];return a;}});

Morrus 09-26-2011 01:18 PM

Quote:

Originally Posted by mtbikemike (Post 2250083)
Just released 3.0.4 and it's looking pretty solid on my machine. Had to flip the code to rely on javascript for FB logged in status. This should speed things up a bit. But then again, might cause problems on lower end browsers or sites with a ton of javascript and external references.

See the change log for details on what's new.

A working demo can be tested out here.

Thanks in advance for any bug reports. :)

The button doesn't work for me on your demo site.

Edit - scratch that. It does now.

mtbikemike 09-26-2011 01:48 PM

ooops. forgot to move some code into the plugin. I re-uploaded 3.0.4 with the fix below.


Add to to top of parse_templates hook ...
Code:

// make sure the fbuid = 0 when there is a new session
$vbulletin->session->vars['fbuid'] == null ? 0 : $vbulletin->session->vars['fbuid'];


mtbikemike 09-26-2011 01:54 PM

Quote:

Originally Posted by unp (Post 2250128)
3.0.4 Not working for me, Firebug showing this error message:

Most likely caused by a null session var. Check my previous message on how to fix.

If the fix doesn't work, let me know what version of FF you're using.

mtbikemike 09-26-2011 01:55 PM

Quote:

Originally Posted by JohorBahru (Post 2249579)
hi, does this work or any changes required after f8?

Should work fine. No changes needed after F8, but a lot of interesting possibilities.

See forums.carreview.com for a live demo.

mtbikemike 09-26-2011 01:58 PM

Quote:

Originally Posted by Hellmaster (Post 2249735)
It's 5.2.17

Thanks for reply, hope you can help me!:)

I developed it using 5.3, but the latest release of the plugin should run okay on 5.2.

Taringa! CS 09-26-2011 02:13 PM

After upgrading to 3.0.4 i've got some problems like

*) I'm logged in and i can login using facebook
*) I'm logged out and after trying to login using fb button wrong username/password error it's shown


All times are GMT. The time now is 06:02 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.01266 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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