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

wolfstream 05-21-2009 02:09 PM

Quote:

Originally Posted by madotds (Post 1814620)
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?

This is not an installation issue, but it is how all facebook applications work. All registration details are handled through facebook, and the user can not login through the forum's regular "login" function, but must use the facebook connect icon.

The user also doesn't go through a separate registration process. Why? Because they're already registered through facebook. Their email, personal information, everything like that are already stored on facebook.

A facebook user can not change their password through your forum (this is why the template edit is necessary), because their details aren't stored there.

MoveOver.cc 05-21-2009 03:54 PM

This works for me apart from the publishing part which I understand from reading another thread is unfixable.

I originally paid for this but had no reply from the owner.

Whether or not this is a good mod, the developer is a thief for taking my money without doing anything about it and not replying to my emails.

This thread should be removed

I have written to vbulletin.org but have had no response on this which is very poor.

Blacura 05-22-2009 08:33 AM

When i install this mod 1st error i get is this
PHP Code:

Parse errorparse errorunexpected '{' in /home/content/b/l/a/blacura93/html/forum/includes/functions.php(5721) : eval()'d code on line 9 

then nothing happens when i click on the button.

then next error i get is this
PHP Code:

Parse errorparse errorunexpected '{' in /home/content/b/l/a/blacura93/html/forum/includes/functions.php(5721) : eval()'d code on line 9 


wolfstream 05-22-2009 03:44 PM

Quote:

Originally Posted by MoveOver.cc (Post 1814702)
Whether or not this is a good mod, the developer is a thief for taking my money without doing anything about it and not replying to my emails.

There I would most definitely agree
Quote:

Originally Posted by MoveOver.cc (Post 1814702)
This thread should be removed

Why? Because it provides a useful addon? The thread provides a decent addon. Whether the author takes your money and runs is a completely different factor.

Quote:

Originally Posted by Blacura (Post 1815078)
When i install this mod 1st error i get is this
PHP Code:

Parse errorparse errorunexpected '{' in /home/content/b/l/a/blacura93/html/forum/includes/functions.php(5721) : eval()'d code on line 9 

then nothing happens when i click on the button.

then next error i get is this
PHP Code:

Parse errorparse errorunexpected '{' in /home/content/b/l/a/blacura93/html/forum/includes/functions.php(5721) : eval()'d code on line 9 


Make sure you're running the latest version of the addon, and that you've got the minimum requirements to run it (at minimum php5). If you have all of those, and you haven't edited the php files themselves, you will not get this error.

Blacura 05-23-2009 12:13 AM

Quote:

Originally Posted by wolfstream (Post 1815270)
There I would most definitely agree

Why? Because it provides a useful addon? The thread provides a decent addon. Whether the author takes your money and runs is a completely different factor.


Make sure you're running the latest version of the addon, and that you've got the minimum requirements to run it (at minimum php5). If you have all of those, and you haven't edited the php files themselves, you will not get this error.

that fixed that issue but now when i log in it says wrong userid or password

PattiOz 05-23-2009 12:26 AM

This looked good to start but now after reading everything I'm too scared to install it myself. LOL. Tagged anyway.

wolfstream 05-23-2009 01:00 AM

Quote:

Originally Posted by Blacura (Post 1815510)
that fixed that issue but now when i log in it says wrong userid or password

When you login how, through facebook? Or through the system itself.
Remember, you can't login as a "normal user" if the user was created using the facebook integration. You need to click on the "facebook connect" button.

Quote:

Originally Posted by PattiOz (Post 1815518)
This looked good to start but now after reading everything I'm too scared to install it myself. LOL. Tagged anyway.

It's really not that hard to install, you just need to read the instructions. There are plenty of people here willing to help out, and if nothing else, you can always disable the thing or uninstall the module.

Blacura 05-23-2009 01:20 AM

Quote:

Originally Posted by wolfstream (Post 1815532)
When you login how, through facebook? Or through the system itself.
Remember, you can't login as a "normal user" if the user was created using the facebook integration. You need to click on the "facebook connect" button.


It's really not that hard to install, you just need to read the instructions. There are plenty of people here willing to help out, and if nothing else, you can always disable the thing or uninstall the module.

ok here is my issue. depending on where you click the url wont be the same so the connect button wont work for example if its http://ladiesletsride.com/forum is till work but if its http://ladiesletsride.com/forum/index.php it wont work. and when i do log in and log out it goes to the facebook home page

wolfstream 05-23-2009 04:09 AM

Did you point the app to yourdomain.com or yourdomain.com/forum ?

Blacura 05-23-2009 04:22 AM

i pointed both to domain.com/forum

Blacura 05-23-2009 04:26 AM

otherwise i get this error if i do sign in

wolfstream 05-23-2009 04:32 AM

hrrrm
When you updated the plugin, did you re-upload the files as well?
This seems quite a bit odd, because I've never had this problem. Then again, my forums are directly @ domain, not domain/forum

Blacura 05-23-2009 04:42 AM

this was the first time i installed it. so it wasnt an update

Blacura 05-23-2009 05:01 AM

not to mention it doesnt work with firefox

wolfstream 05-23-2009 05:14 AM

Well, that's odd.

Since the author has pretty much abandoned this app, I will provide what help I can to those that need it. If you need help installing it, contact me via PM and I'll try to work something out with you.

I don't want to step on anyone toes here, so if the author comes back in and says he'll handle installs, I will gladly let him do so.

Blacura, if you want to have me take a look @ this for you, drop me a PM.

This app does work, and you've got to do a bit of configuration to it, but if it's more complicated, let me know

wolfstream 05-23-2009 06:47 AM

Blacura, you're setup well enough now. let me know if you have other problems.
You didn't have the app setup correctly, so it wasn't handling the facebook information properly.

All better ;)

Blacura 05-23-2009 07:39 AM

Quote:

Originally Posted by wolfstream (Post 1815639)
Blacura, you're setup well enough now. let me know if you have other problems.
You didn't have the app setup correctly, so it wasn't handling the facebook information properly.

All better ;)

You are the best. if anyone else is having issues talk to this guy he is awesome

BigDog56 05-23-2009 09:24 AM

I was about to install this, but if the author has abandoned it...

Blacura 05-23-2009 02:22 PM

i was thinking same thing but it works fine. go ahead and install it

kud0gfx 05-25-2009 01:49 AM

Can I use it ONLY for already registered users? i know that if a guest connects is registered, but i've a modified register.php, with email marketing and all that crap... so... what would happen with that?

Blacura 05-25-2009 02:39 AM

you dont need to do any of that. follow the directions and it should work fine

wolfstream 05-25-2009 03:54 AM

Quote:

Originally Posted by kud0gfx (Post 1816594)
Can I use it ONLY for already registered users? i know that if a guest connects is registered, but i've a modified register.php, with email marketing and all that crap... so... what would happen with that?

Not without a bit of custom modification.


Quote:

Originally Posted by Blacura (Post 1816606)
you dont need to do any of that. follow the directions and it should work fine

What they're referring to is understandable. Basically they wants to run their forum a specific way (ie: custom registration with email marketing), so users should have to signup before accessing the registration integration. Not every forum is going to be setup 100% the same, and that's a very, very good thing, trust me.


I know it's confusing, but actually, doing things that way would eliminate all problems of future integration issues (ie: facebook suddenly changes something, so bam, users registered through facebook are screwed). This way, only the username is linked w/ facebook.

GrossKopf 05-26-2009 04:30 AM

I'm installing this but I'm a little confused. What goes in these fields?

First Login Feed Template ID
New Reply Feed Template ID
New Thread Feed Template ID

wolfstream 05-26-2009 04:43 AM

Quote:

Originally Posted by GrossKopf (Post 1817281)
I'm installing this but I'm a little confused. What goes in these fields?

First Login Feed Template ID
New Reply Feed Template ID
New Thread Feed Template ID

The instructions tell you all about what to do there. Follow step 5

GrossKopf 05-26-2009 05:01 AM

Quote:

Originally Posted by wolfstream (Post 1817284)
The instructions tell you all about what to do there. Follow step 5

All Step 5 says is:

"Step 5:

Go to FB Connect Options > News-Feed Templates and register default templates. Then Go to FB Connect Options > Settings and save your settings (even if you don't change anything)."

So, I don't put anything in there? I don't know what "default templates" are.

Also, I have another problem. At this part of the instructions:

Quote:

Template: navbar

Find:
<!-- / login form -->

Insert After:
<!-- fbconnect -->
<center>
<span class="fbconnect" style="height:21px">
<img src="http://static.ak.fbcdn.net/images/loaders/indicator_white_small.gif" alt="Connect with Facebook" />
</span>
</center>
<!-- / fbconnect -->
I don't have "<!-- / login form -->" in navbar of the template I'm modding.

wolfstream 05-26-2009 05:14 AM

The instructions give you the information you need to do things, and if you follow the instructions, it will work.

As far as the custom template modification, you're on your own there. You should understand how to edit and modify a template, it's pretty basic. If you don't, then you shouldn't install this mod by yourself, as it's not a "basic" mod.

Ross L 05-26-2009 06:39 AM

Quote:

Originally Posted by GrossKopf (Post 1817294)
Also, I have another problem. At this part of the instructions:



I don't have "<!-- / login form -->" in navbar of the template I'm modding.

If you haven't got <!--/ login form-->, look for
Code:

                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                <input type="hidden" name="do" value="login" />
                <input type="hidden" name="vb_login_md5password" />
                <input type="hidden" name="vb_login_md5password_utf" />
                </form>

and add the FB code below that.

nathangjj 05-26-2009 07:56 AM

I have this is installed and it's working perfectly in Firefox but in Internet Explorer every page returns this Flash error:

Code:

SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller http://static.ak.connect.facebook.com/swf/XdComm.swf cannot access http://www.mysiteurl.com/.
        at flash.external::ExternalInterface$/flash.external:ExternalInterface::_initJS()
        at flash.external::ExternalInterface$/addCallback()
        at XdComm$iinit()

Anyone got any ideas what's wrong?

pericolosogr 05-26-2009 01:26 PM

Quote:

Originally Posted by kud0gfx (Post 1816594)
Can I use it ONLY for already registered users? i know that if a guest connects is registered, but i've a modified register.php, with email marketing and all that crap... so... what would happen with that?

That would be ideal, cause already registered users with valid email adresses can get these important forum notifications in facebook!
BUT, somebody has to do it :)

stryka 05-27-2009 12:07 AM

No disrespect to the original coder cuz he helped me out in the past but it looks like he is juss to busy .... and i guess doing any type of FBOOK bridge is scary enough cuz of the FREE support that is required on the forums...

Anyhow... much thanks to WOLFSTREAM... he logged into to my site, diagnosed the problem, and fixed it right away... definietly PM him if you want him to fix your probs...

Otherwise... the latest version has no probs... 99% of the time it is user error during installation/setup... if you already spent more than 3hrs reimplementing or debugging... juss get WOLFSTREAM involved... my philosophy is "TIME IS MONEY"... i'd rather get someone else to do it in 1hr versus me struggling with it for 3hrs when i can be doing something else on my site...

Quote:

Originally Posted by wolfstream (Post 1815617)
Well, that's odd.

Since the author has pretty much abandoned this app, I will provide what help I can to those that need it. If you need help installing it, contact me via PM and I'll try to work something out with you.

I don't want to step on anyone toes here, so if the author comes back in and says he'll handle installs, I will gladly let him do so.

Blacura, if you want to have me take a look @ this for you, drop me a PM.

This app does work, and you've got to do a bit of configuration to it, but if it's more complicated, let me know



All times are GMT. The time now is 06:14 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.01963 seconds
  • Memory Usage 1,882KB
  • 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
  • (4)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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