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)

da_j 06-09-2009 08:45 PM

this has been asked before: is it possible to link to the login popup?
or even use the login box on a different page then the forum?
Thanks, jay

metalguy639 06-11-2009 12:07 AM

What the heck is this????


Code:

An error occurred while creating a feed story from the template and template data you provided. The specific error is listed below:

An invalid target was specified: 100000026180558. The target must be a valid Facebook user id and be friends with the actor.

I tried to do the template part of the install and I have no idea what its talking about. Can someone help me with this? I'm new to facebook just got an account yesterday.

Digital Jedi 06-11-2009 10:13 PM

Quote:

Originally Posted by metalguy639 (Post 1827340)
What the heck is this????


Code:

An error occurred while creating a feed story from the template and template data you provided. The specific error is listed below:

An invalid target was specified: 100000026180558. The target must be a valid Facebook user id and be friends with the actor.

I tried to do the template part of the install and I have no idea what its talking about. Can someone help me with this? I'm new to facebook just got an account yesterday.

You may need to go back to the Facebook application and reset your Secret Key (read: click the link that says Reset Your Secret Key ;)). Then come back and re-input all your information and try registering the templates again.

metalguy639 06-12-2009 11:11 PM

Thanks again DJ, maybe I should just not try to install hacks when I'm half asleep LOL

jesusdlg 06-14-2009 04:26 PM

Hello everyone,

My community forums has more than 15,000 users and I'm thinking how to make more people to participate on the forums so I found this hack but have some questions before I use it.

I'm using vbulletin in conjunction with linkssql, so I currently share my vbulletin users for both apps. I understand this hack will let people to login into my forums using their facebook username and pass, am I correct?

If yes, How will this hack will handle all my current 15,000+ users on my system?

Thanks in advance for giving me some advice about this hack and the benefits for the implementation, I dont want to make a mess with my current users, I'll love to give them more tools in order to invite them to participate more on my forums.

Thanks in advance.:cool:

xXEsEtUlOnXx 06-15-2009 02:54 AM

thanks a lot, this is great.

PD: I Have Nominated it to MOTM

hugh_ 06-16-2009 09:55 AM

Although I've just succesfully tested this hack again I've had a report of the following error:

URL: http://www.forum.net/fblogin.php

*Fatal error:*

- Please complete the required field "Email".

Unable to proceed with save while $errors array is not empty in class *
vB_DataManager_User* in *[path]/includes/class_dm.php* on line *810*

Have I done something? How can I fix it?

Thanks...

hydn 06-21-2009 01:00 PM

I've been reporting this prob for 2 months and other have posted also. Still no reply as to cause or solution.

I've even sent the $25 to developer and not even a response.

I have not done any of the optional template edits. Yet this error is seen when clicking any of the showthread pages.

Any ideas?
Quote:

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 ' '; }

bposner 06-25-2009 01:37 AM

Facebook Connect staff:
We've had this on our site, www.stangsofsouthflorida.com/forum for quite sometime and has worked perfectly. Recently users are complaining that the request to post message pops up every time now. There is no option to shut it off, accept just once. Did something change of Facebook... I only work on this forum occasionally as it is pretty basic and runs itself. I have made no updated or changes to the forum software.
Thanks

SuperNissans 06-26-2009 01:16 AM

Need some help please. I have installed this hack EXACTLY as instructed, but when clicking the facebook bar under the login screen, it goes no where.

Ideas please?!

www.supernissan.net


All times are GMT. The time now is 09:35 AM.

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.02760 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_code_printable
  • (2)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