vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Integration with vBulletin - Facebook Connect - Allow your users to login with their Facebook account (for 3.8) (https://vborg.vbsupport.ru/showthread.php?t=203064)

razgriz 02-12-2009 11:13 AM

is there any registered users that login using their facebook account?

AyeCapn 02-12-2009 02:21 PM

Quote:

Originally Posted by playSocial (Post 1740863)
It stores a valid email address. Sending an email to that address goes to facebook and is then forwarded to the email address that person has in their facebook account

so if someone signs up through FB, and they receive a PM, they WILL receive email notification about it? Thread subscriptions? Admin emails, etc?

johndiaz 02-13-2009 12:50 AM

Any idea why this is happening?
I get this when I look at the main app page on Facebook...

PHP Code:

Errors while loading page from application
Parse errors
:

FBML Error (line 361): illegal tag "body" under "fb:canvas"

FBML Error (line 2238): illegal tag "noscript" under "fb:canvas"

FBML Error (line 2338): illegal tag "noscript" under "fb:canvas"

Runtime errors:

URLExceptionInvalid scheme for url (javascript:openRadioAndTV()) 


Goomzee 02-13-2009 03:15 AM

how to i set Data Maping or i just leave this option

sllik 02-13-2009 03:20 AM

Quote:

Originally Posted by Derekclarke (Post 1740841)
I posted this on the 3.7 thread...

I have installed it on 3.8 and used the 2.03 file... but get the following error... Please can someone help out?


I get this error when i Import the product.

Parse error: syntax error, unexpected '{' in /home/site/public_html/includes/functions_fbconnect.php on line 79

it also stops anyone being able to view any threads.

Any Idea how to resolve?

Thanks
Derek

try to reupload the file

Quote:

Originally Posted by Potlocator (Post 1741426)
Hey guys, installed this mod this morning and it works slick. Only issue I'm seeing so far is that I no longer am able to show the "new images" from Photopost on my Forum Home. Anyone else having this issue? I know Photopost is projecting a 2.5 release any day now but who knows if that has anything to do with it.

It's conflicting with Photopost for some reason!

Quote:

Originally Posted by johndiaz (Post 1742433)
Any idea why this is happening?
I get this when I look at the main app page on Facebook...

PHP Code:

Errors while loading page from application
Parse errors
:

FBML Error (line 361): illegal tag "body" under "fb:canvas"

FBML Error (line 2238): illegal tag "noscript" under "fb:canvas"

FBML Error (line 2338): illegal tag "noscript" under "fb:canvas"

Runtime errors:

URLExceptionInvalid scheme for url (javascript:openRadioAndTV()) 


set your convas page to iframe in the facebook app settings.

Goomzee 02-13-2009 03:28 AM

Is this imporant to put Facebook Application Secret?

RvG2 02-13-2009 03:39 AM

hope to include activities in groups as well :)

VampireG 02-13-2009 08:32 AM

Hi wonder if someone can help me, I have installed the Mod as per the instructions, and when I enable the mod I get this written out to the screen:

Code:

query_first(" SELECT fbuid FROM " . TABLE_PREFIX . "fbuser WHERE userid = " . $userid . " LIMIT 1 "); return intval($user['fbuid']); } function fetch_fbuser_info($query) { require_once(DIR . '/includes/facebook/facebook.php'); global $vbulletin, $db; $fbusers = $db->query_read($query); $fbuids = ""; $vbuids = array(); while ($fbuser = $db->fetch_array($fbusers)) { if ($fbuser['fbuid']) { $fbuids .= $fbuser['fbuid'] . ","; $vbuids[] = $fbuser['userid']; } } $fbuids = rtrim($fbuids, ','); $fbuserinfo = $vbulletin->session->vars['fbuserinfo']; if ($vbulletin->facebook == null) $vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']); try { $fbuser = $vbulletin->facebook->api_client->users_getInfo($fbuids, 'name, first_name, last_name, affiliations, pic, pic_small, pic_square'); for ($i = 0; $i < count($fbuser); $i++) $fbuserinfo[$vbuids[$i]] = $fbuser[$i]; $vbulletin->session->set('fbuserinfo', $fbuserinfo); } catch(FacebookRestClientException $ex) { } //print_r($vbulletin->session->vars['fbuserinfo']); } function set_fb_data(&$target, $userid = '', $profilefield = false) { require_once(DIR . '/includes/facebook/facebook.php'); global $vbulletin, $db, $show, $vbphrase, $fb_field_map, $avatarurl; if ($userid) $target['userid'] = $userid; if ($vbulletin->options['fbconnect_importdata'] && $target['userid'] != '') { $fbuserinfo = $vbulletin->session->vars['fbuserinfo']; if (!is_array($fbuserinfo[$target['userid']])) { $fbuid = get_fb_uid($target['userid']); if ($fbuid) { if ($vbulletin->facebook == null) $vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']); try { $fbuser = $vbulletin->facebook->api_client->users_getInfo($fbuid, 'name, first_name, last_name, affiliations, pic, pic_small, pic_square'); $fbuserinfo[$target['userid']] = $fbuser[0]; $vbulletin->session->set('fbuserinfo', $fbuserinfo); } catch(FacebookRestClientException $ex) { } } } if (is_array($fbuserinfo[$target['userid']])) { if (!is_array($fb_field_map)) { $fb_field_map = array(); $profile_fields = $db->query_read(" SELECT * FROM " . TABLE_PREFIX . "fbdatamap "); while ($field = $db->fetch_array($profile_fields)) { $fb_field_map[$field['vbfield']] = $field['fbfield']; } } $not_profile_field = array('avatarurl', 'profilepicurl'); foreach ($fb_field_map as $vbfield => $fbfield) { if ($profilefield && $target['value'] && $target['value'] != $vbphrase['n_a']) continue; if ($target[$vbfield] && pathinfo($target[$vbfield], PATHINFO_BASENAME) != 'unknown.gif') continue; if ($fbfield == 'affiliations') { if (is_array($fbuserinfo[$target['userid']][$fbfield])) { foreach ($fbuserinfo[$target['userid']][$fbfield] as $network) { if ($network['type'] == 'region') { $fbuserinfo[$target['userid']][$fbfield] = $network['name']; break; } } } } if ($profilefield) { if ($vbfield == ('field' . $target['profilefieldid'])) { $target['value'] = $fbuserinfo[$target['userid']][$fbfield]; break; } } else $target[$vbfield] = $fbuserinfo[$target['userid']][$fbfield]; } if ($target['avatarurl']) { $avatarurl = $target['avatarurl']; $show['avatar'] = true; } } } } function print_datamap_row($vbdata, $fbdata, $vbselected = "", $fbselected = "") { global $vbphrase; echo '  '; if ($vbselected) echo '[ '.$vbphrase['delete'].' ]'; echo ' '; }
Any ideas. Seems to show in "Showthread" and also within "FB Connect Options >Data Mapping".

Wakey 02-13-2009 09:55 AM

Quote:

Originally Posted by AyeCapn (Post 1741915)
so if someone signs up through FB, and they receive a PM, they WILL receive email notification about it? Thread subscriptions? Admin emails, etc?

Yep, as long as they grant the 'facebook' application the right to email and send them facebook notifications (which is done at signup or through usercp if they choose no at signup) then all the emails that normal users will be sent to their email listed in facebook via the facebook mail proxy

Vaupell 02-13-2009 10:53 AM

Quote:

Originally Posted by AyeCapn (Post 1741915)
so if someone signs up through FB, and they receive a PM, they WILL receive email notification about it? Thread subscriptions? Admin emails, etc?

again, only if they have accepted to recive notifications, but they wont recive a mail
they will recive notification on facebook.

I got my facebook registrants in a different usergroup, cause they should
not be generated on a mailing list, this is will annoy the post server.


All times are GMT. The time now is 11:54 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.01943 seconds
  • Memory Usage 1,766KB
  • 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
  • (2)bbcode_php_printable
  • (6)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