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)

TomJames 05-18-2009 08:47 PM

My issue is that after I input a desired username it asks if I want to publish to my wall. I click no. Then it just goes to a blank page (fblogin.php), if I try to use it again it just asks for the desired username again.

No way to get past that. :(

wolfstream 05-18-2009 08:57 PM

Seems something is missing there. Are you using the latest version? Have you double checked everything is setup correctly? See my post a few posts back about what to check.

I was having a problem myself with the skip/publish stuff and a fresh update took care of that immediately.

nascartr 05-19-2009 01:50 PM

I can attest that everything works fine http://diecastcrazy.com/community/forums.php but you have to follow the template edits and instructions exactly as they are written. I am using the 3.7 version on my 3.8 board though because the latest update for it was about a week newer than this release.

wolfstream 05-19-2009 02:13 PM

I'm using 3.8 myself, and it works dandy. Site is in my sig, at least the one that I'm making public. I have another site running it that's just a fansite.

Ricsca 05-19-2009 09:42 PM

Quote:

Originally Posted by pericolosogr (Post 1803539)
when somebody logins, there is a new user created but in his mail field there is something of this form : apps+2312391283902472109482309218@proxymail.facebo ok.com
What do i have to change so that the proper mail is registered?

What do you mean that all these users coming from facebook connect are not registred in the database? i see them, properly, with id, username, details etc
You mean that if someday facebook stops working they wont be able to connect to my forums (but they do have username and password)

Very interest...

ubcforums 05-20-2009 02:55 PM

best mod !! excellent job !

Mr. Brian 05-21-2009 03:31 AM

Quote:

Originally Posted by cngrock (Post 1769451)
Hi

When data mapping I get this show, and it also shows when loading the posts:

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 on how to fix.

when I disable the facebook connect - the forums work fine.

Cheers

Are u running your forum on sub domain?

arcadian_girl 05-21-2009 07:27 AM

Quote:

Originally Posted by wolfstream (Post 1813004)
This mod runs fine, ignore those that balk about "Facebook has changed things", obviously they haven't used it.

I have this mod installed on two separate forums, and have yet to have an issue with things.

Remember, just because the author hasn't "updated the mod" in a while doesn't mean they've abandoned it. I mean, really, we DO have lives you know.

It's not just the lack of udpate, it's other issues mentioned in this thread as well.

Btw, you've got a really shitty attitude.

wolfstream 05-21-2009 07:39 AM

Quote:

Originally Posted by ubcforums (Post 1814121)
best mod !! excellent job !

I wouldn't classify it as the "best mod", but the author did do a good job when putting this together

Quote:

Originally Posted by arcadian_girl (Post 1814485)
It's not just the lack of udpate, it's other issues mentioned in this thread as well.

The "other issues" in this thread that have been mentioned have been a result of improper installations. Many, many people have said "this works", and it does, in fact work.

Quote:

Originally Posted by arcadian_girl (Post 1814485)
Btw, you've got a really shitty attitude.

Your personal opinion, and that's fine, but it's not the actual truth.
I'm not the developer of this mod, I'm not going to spend my time (for free) telling people how they installed this mod incorrectly, or how they did something wrong. I will help to a degree, but I'm not going to give a step by step tutorial to someone that can't follow the basics to begin with.

If the mod doesn't work, then really, you need to go back, read through the install instructions, verify that everything is done 100% correctly (most importantly, the urls, templates, and the FB identifiers). IF it's all done correctly, then you will have a working application. If NOT, then don't blame the dev, because it's not the dev's fault.

This mod isn't a "simple" mod to install. You actually have to get in there, grasp what you're doing and make template edits yourself (or use a mod to do so). It does, however, work.

madotds 05-21-2009 01:04 PM

Quote:

Originally Posted by wolfstream (Post 1814498)
The "other issues" in this thread that have been mentioned have been a result of improper installations. Many, many people have said "this works", and it does, in fact work.

The main issue with this mod for me is the fact that a password is not stored in the database can you confirm if this is because of installation or not?

Cheers


All times are GMT. The time now is 01:49 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.01658 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
  • (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