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)

NeverBored 03-26-2009 12:07 AM

Is it not possible to allow wall posting without the user being logged into facebook? Particularly what I'm talking about is an existing user that links there account but at a later date logs into the forum without using fbconnect or a fbconnect user that logs out of facebook while still on the forum... In that case it seems stories are not posted to the wall.

At first I thought maybe it's a function of face book api, but I just tried out Netflixs new face book app and it posts movie ratings without having to reconnect through facebook connect.

I apologize if this has been talked about before, but finding this info would be a pain in 80+ pages.

Other than that I've installed this and believe I've tested every feature possible in every way and have had ZERO problems!

Mr.samy 03-27-2009 10:51 AM

i have problem when [textdirection] in language setting is rtl not work but when i change it to ltr work perfect ?

JohorBahru 03-30-2009 11:21 AM

I'm thinking about this idea, post your reply/ quick reply/ or new thread to your facebook as well, not sure could this be done by the facebook connect?
https://vborg.vbsupport.ru/showthread.php?t=209863


thank you:)

richard333 04-01-2009 04:45 PM

hey guys im getting this error:

Code:

# facebook == null) $vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']); $facebook = $vbulletin->facebook; $fbuid = intval($vbulletin->facebook->get_loggedin_user()); if ($fbuid > 0) { $vbuser = $db->query_first(" SELECT userid FROM " . TABLE_PREFIX . "fbuser AS fbuser WHERE fbuid = " . $fbuid . " LIMIT 1 "); if ($vbuser['userid']) { $vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE userid = '" . $vbuser['userid'] . "'"); if ($vbulletin->userinfo['username']) { //set coockies vbsetcookie('userid', $vbulletin->userinfo['userid'], true, true, true); vbsetcookie('password', md5($vbulletin->userinfo['password'] . COOKIE_SALT), true, true, true); //login vb user process_new_login('', true, ''); $path_parts = pathinfo(parse_url($vbulletin->url, PHP_URL_PATH)); if ($path_parts['basename'] == 'fblogin.php') $vbulletin->url = $vbulletin->options['forumhome'] . '.php'; // do redirect if (!is_array($vbphrase)) $vbphrase = array(); do_login_redirect(); } else { $db->query_write("DELETE FROM " . TABLE_PREFIX . "fbuser WHERE fbuid = $fbuid"); $templatename = 'fbconnect_login'; } } else { //request username to create a new vb user $templatename = 'fbconnect_login'; } } else { eval(standard_error(fetch_error('badlogin', $vbulletin->options['bburl'], $vbulletin->session->vars['sessionurl']))); } if ($_GET['do'] == 'login') { $templatename = 'fbconnect_loginform'; } if ($_POST['do'] == 'addmember') { $vbulletin->input->clean_array_gpc('p', array( 'username' => TYPE_STR )); if (!$vbulletin->options['allowregistration']) { eval(standard_error(fetch_error('noregister'))); } $fbuserinfo = $facebook->api_client->users_getInfo($fbuid, array('proxied_email')); $fbuserinfo = $fbuserinfo[0]; // init user datamanager class $userdata =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY); if ($vbulletin->options['moderatenewmembers']) { $newusergroupid = 4; } else { $newusergroupid = ((intval($vbulletin->options['fbconnect_defaultgroup']) > 0) ? $vbulletin->options['fbconnect_defaultgroup'] : 2); } $userdata->set('username', $vbulletin->GPC['username']); //generate random password $userdata->set('password', generate_password()); // set usergroupid $userdata->set('usergroupid', $newusergroupid); // set languageid $userdata->set('languageid', $vbulletin->userinfo['languageid']); // set user title $userdata->set_usertitle('', false, $vbulletin->usergroupcache["$newusergroupid"], false, false); // register IP address $userdata->set('ipaddress', IPADDRESS); $userdata->pre_save(); // check for errors if (!empty($userdata->errors)) { $_REQUEST['do'] = 'register'; $errorlist = ''; foreach ($userdata->errors AS $index => $error) { $errorlist .= "$error
"; } $username = htmlspecialchars_uni($vbulletin->GPC['username']); $show['errors'] = true; } else { $show['errors'] = false; $userdata->set('email', $fbuserinfo['proxied_email']); // save the data $vbulletin->userinfo['userid'] = $userid = $userdata->save(); if ($userid) { //map fbuser to vbuser $db->query_write(" INSERT IGNORE INTO " . TABLE_PREFIX . "fbuser (fbuid, userid) VALUES (" . $fbuid . ", " . intval($userid) . ") "); $friendcount = 0; if ($vbulletin->options['fbconnect_importfriends']) { //find friends and add to friend's list $friends = $facebook->api_client->friends_get(); if (is_array($friends) && count($friends) > 0) { $vbfriends = $db->query_read(" SELECT user.userid FROM " . TABLE_PREFIX . "user AS user, " . TABLE_PREFIX . "fbuser AS fbuser WHERE fbuser.fbuid IN (" . implode(',', $friends) . ") AND user.userid = fbuser.userid "); while ($friend = $db->fetch_array($vbfriends)) { $db->query_write(" INSERT IGNORE INTO " . TABLE_PREFIX . "userlist (userid, relationid, type, friend) VALUES (" . intval($userid) . ", " . $friend['userid'] . ", 'buddy', 'yes') "); $friendcount++; } } } $vbulletin->userinfo['fbuid'] = $userid; $userinfo = fetch_userinfo($userid); $userdata_rank =& datamanager_init('User', $vbulletin, ERRTYPE_SILENT); $userdata_rank->set_existing($userinfo); $userdata_rank->set('posts', 0); $userdata_rank->set('friendcount', $friendcount); $userdata_rank->save(); // force a new session to prevent potential issues with guests from the same IP, see bug #2459 require_once(DIR . '/includes/functions_login.php'); $vbulletin->session->created = false; process_new_login('', false, ''); //post news-feed /* if ($vbulletin->options['fbconnect_firstlogintemplateid']) { $tokens = array( 'bbtitle' => $vbulletin->options['bbtitle'], 'bburl' => $vbulletin->options['bburl'], 'images' => array() ); try { $vbulletin->facebook->api_client->feed_publishUserAction($vbulletin->options['fbconnect_firstlogintemplateid'], $tokens, '', '', 1); } catch(FacebookRestClientException $ex) { } } */ $username = $vbulletin->GPC['username']; $email = $fbuserinfo['proxied_email']; // send new user email if ($vbulletin->options['newuseremail'] != '') { $ipaddress = IPADDRESS; eval(fetch_email_phrases('newuser', 0)); $newemails = explode(' ', $vbulletin->options['newuseremail']); foreach ($newemails AS $toemail) { if (trim($toemail)) { vbmail($toemail, $subject, $message); } } } if ($newusergroupid == 2) { if ($vbulletin->options['welcomemail']) { eval(fetch_email_phrases('welcomemail')); vbmail($email, $subject, $message); } } $vbulletin->url = str_replace('"', '', $vbulletin->url); if (!$vbulletin->url) { $vbulletin->url = $vbulletin->options['forumhome'] . '.php' . $vbulletin->session->vars['sessionurl_q']; } else { $vbulletin->url = iif(strpos($vbulletin->url, 'register.php') !== false, $vbulletin->options['forumhome'] . '.php' . $vbulletin->session->vars['sessionurl_q'], $vbulletin->url); } if ($vbulletin->options['moderatenewmembers']) { eval(standard_error(fetch_error('moderateuser', $username, $vbulletin->options['forumhome'], $vbulletin->session->vars['sessionurl_q']), '', false)); } else { eval(standard_error(fetch_error('registration_complete', $username, $vbulletin->session->vars['sessionurl'], $vbulletin->options['bburl'] . '/' . $vbulletin->options['forumhome'] . '.php'), '', false)); } } } } eval('print_output("' . fetch_template($templatename) . '");');

anyone know how i can fix this?

BillP 04-02-2009 04:43 AM

When I go to create an application at Facebook, it's not clear where the Callback URL is supposed to go. If I go to "edit settings" there are many types of Callback URLs all over the place, under multiple tabs.

I've tried to scan all 50+ pages of this thread, but all I hear is "what's your Callback URL set to?" or "set it in the application settings".

Do I set it everywhere the word "Callback URL is set"? Like for Post Authorize Callback URL and Post Remove Callback URL, Information Update Callback URL, Publish Callback URL, etc?
:confused:

sdsvtdriver 04-02-2009 05:37 AM

I am suddenly getting this error:

Code:

Application response error
Invalid template bundle id specified: 12244885550. You can see this because you are one of the developers of the app.

The odd thing, I don't recognize that number from anywhere, it isn't my application ID

ViciousCode 04-02-2009 12:08 PM

is the posting error fixed? before i got the error about not enough characters in a post

Zi55 04-02-2009 08:43 PM

Any anwser from the coder?

robw 04-05-2009 06:32 AM

Hi Sllik - this sounds like a great plugin. How would it work (if at all) for membership forums where members have to pay for a registration? Is there some way to turn off the automatic registration and just keep the feed notifications etc for existing users? Or maybe the answer is to put new FB users into a group which has same rights as an 'expired' member.

kaanon 04-06-2009 10:33 PM

So.... this mod works perfectly for what it does. I can signup as a new user, all my posts/replies get put on my facebook. I really like it. Unfortunately I'm having a hard time integrating some other things that FB suggests in http://wiki.developers.facebook.com/...od_Connect_App.

I've tried to implement the status by changing the onDOMReady function to
Code:

if(FB.Connect.get_status().result == 1) //If you're connected
                {
                        elements[i].innerHTML = '<a href="#" onclick="facebook_requestSession(); return false;"><img id="fb_login_image" src="http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_medium_long.gif" border="0" alt="Connect"/></a>';
                }
                else
                {
                        elements[i].innerHTML = '<img id="fb_login_image" src="http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_small_short.gif" border="0" alt="Connect"/><span style="padding-bottom: 3px">You are Connected to Facebook</a>';
                }

Unfortunately, with this, I'm having trouble making sure users who are connected to their facebook accounts also get logged in there, when the log in, normally.

want3ed 04-07-2009 02:16 PM

Facebook profile URL option isnot working in my forum.. Could anyone help me with it..

testbot 04-07-2009 03:46 PM

i think this mod has to be updated. facebook changed the api key i think.

http://forum.developers.facebook.com...c.php?pid=5594

getting this in feeds now:
Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Session key invalid or no longer valid'

orkyn 04-14-2009 04:21 AM

wait for next update..

I need this mod like crazy... :D

nanabite 04-14-2009 04:27 AM

When a new user signs up, the mapped fields do not seem to get populated for me. Am I misunderstanding how it should work? Do the fields just display, or is the data physically copied into my vBulletin database?

I really would like to make the data copy into the vBulletin database as I have some compulsory fields which need to be filled in before a user can post (for example, the user must supply their real name). These fields can all be mapped from Facebook, and this would make the experience far more seamless.

mnlawson 04-14-2009 07:10 PM

Hello -

Does anyone know of 3-5 websites that have the V-Bulletin / Facebook Connect integration.
I just need to see some websites that have FBC working properly with VBulletin.

Thank you!

Marlon Lawson:)

vAsia 04-14-2009 07:51 PM

I wonder if I could turn off vBulletin registration, and have people login using fconnect only.

Mum 04-15-2009 12:24 AM

Quote:

Originally Posted by mnlawson (Post 1791258)
Hello -

Does anyone know of 3-5 websites that have the V-Bulletin / Facebook Connect integration.
I just need to see some websites that have FBC working properly with VBulletin.

Thank you!

Marlon Lawson:)

You can log into my site using FB to check it out if you like www.mummybrain.com

tpearl5 04-15-2009 02:26 AM

Quote:

Originally Posted by mnlawson (Post 1791258)
Hello -

Does anyone know of 3-5 websites that have the V-Bulletin / Facebook Connect integration.
I just need to see some websites that have FBC working properly with VBulletin.

Thank you!

Marlon Lawson:)

I have over 1000 fb users now - http://cellphoneforums.net

Ozidoggy 04-15-2009 02:42 AM

Also my site

www.specialistcanines.com

Wseries 04-17-2009 12:05 AM

I have installed and tested this and everything seems to work okay. The only thing that really bothers me is the fact users who use this to create an account to access my forum do not have to agree to my forum rules. This is huge for me and prevents me from enabling this mod. Any chance that in a future update the forum rules are displayed (as per the normal registration process) and must be agreed to before the users gets to the page to choose a login name?

billb 04-17-2009 05:01 PM

Resever for future install...many thanks

vAsia 04-18-2009 06:00 PM

Does it copy the email address correctly, because I installed this mod before and it didn't copy the email address correctly. Maybe the latest release has this fixed. Has it?

Zi55 04-18-2009 06:35 PM

Waiting the Devloper to fix the errors in this product .

nyunyu 04-18-2009 07:26 PM

Perhaps OP could update first post with a list of incompatible mods?
I think I saw somewhere that this mod does not compatible with some other mods.

I need to know this prior installing.

razorripper 04-22-2009 03:38 AM

this mod is not working on mine.

can some one help me fix it. i am ready to pay a small fee as the author does not install anymore. all the files have been uploaded, template edits done.

thanks!

mnlawson 04-22-2009 12:58 PM

Quote:

Originally Posted by Wseries (Post 1792921)
I have installed and tested this and everything seems to work okay. The only thing that really bothers me is the fact users who use this to create an account to access my forum do not have to agree to my forum rules. This is huge for me and prevents me from enabling this mod. Any chance that in a future update the forum rules are displayed (as per the normal registration process) and must be agreed to before the users gets to the page to choose a login name?

Are you able to ban Facebook Connect users from your VBulletin website? I would like the banning process to work the same for Facebook Connect users as it does for users who register normally thru our VBulletin website. :rolleyes:

mnlawson 04-22-2009 01:01 PM

Quote:

Originally Posted by Mum (Post 1791405)
You can log into my site using FB to check it out if you like www.mummybrain.com


Can you ban Facebook Connect users from your VBulletin site the same way that you do users who go thru the normal registration process?

Thanks! :D

mnlawson 04-22-2009 04:38 PM

Does anyone know if you can use the VBulletin "banning" feature on Facebook Connect users? Any information would be greatly appreciated.

Thank you!

mark schooling 04-22-2009 07:08 PM

This must be a really stupid question as I'm the first to ask it:( Where specifically should I upload the contents of the "upload" file?

"Step#2 - Upload the nessesary files."

I would love to pay the developer to set it up for me, but it seems he has gone M.I.A

mnlawson 04-22-2009 07:17 PM

Quote:

Originally Posted by tpearl5 (Post 1791474)
I have over 1000 fb users now - http://cellphoneforums.net

Can you ban Facebook Connect users from your website if they create spam? I have been trying to get an answer for this. Any information that you can provide would be greatly appreciated.

razorripper 04-23-2009 03:07 AM

no one wants to install even for a price ? :(?

busybeeburns 04-27-2009 09:58 AM

This is a fantastic mod that opens up a host of opportunities for vBulletin communities, however after brutally testing it over the last 24 hours, I have major issues with its neat compatibility with vBulletin. If anyone can help or discuss these I'd be grateful. These are:

1) Changes to Facebook or vBulletin in the future may render this mod incompatible, relying then on support from the developer to bring this mod back in line; if hundreds of administrators are relying on support from a sole developer who decides they are no longer bothered to upgrade for future facebook/vBulletin releases, this will have huge implications for incorrect login functions for potentially millions of registered members across the vBulletin communities.

2) Facebook holds registration details of members, eg. email addresses and passwords. If this mod was ever ditched, I could in theory have thousands of members unable to log in to my forum unless each account was manually altered in admincp. Registered members are unable to do this themselves as changes to email addys or passwords would not be possible as vBulletin would not recognise their original/old details. A logistical nightmare for administrators of large vB communities.

3) It appears that facebook Connect users cannot be contacted via mass email or mass PM add-ons as such users are not found within the database. This effectively renders the use of these important functions useless in the long-term. Especially important should the need arise above where they must take action to continue to log in to the messageboard.

4) I would like to see fblogin.php altered to accept Connect for exisiting vBulletin members only, or tweaked to go via a vB registration process where an vB email address and password can be added. The problems 1-3 above wouldn't exist if this was an alternative installation.

Apart from those important issues the mod is perfect!

mnlawson 04-27-2009 02:40 PM

Are you able to ban Facebook Connect users from your site if they spam it?

mickknutson 04-27-2009 06:42 PM

How can I promote this on facebook now?

Uegnet 04-28-2009 02:12 AM

Quote:

Originally Posted by busybeeburns (Post 1799818)
4) ... or tweaked to go via a vB registration process where an vB email address and password can be added. The problems 1-3 above wouldn't exist if this was an alternative installation ...

Oh, yes please! Glad you pointed out number 1 and 2 there mister, didn't think of those :p
Think I'll uninstall, but with extra e-mail/pw for vBulletin I'll reinstall in a second.

SHANE-D-PAIN 04-30-2009 03:58 PM

I get this every single damned time I reply to or post a new thread. :/
http://www.grabup.com/uploads/2e26eb...b7acfadba3.jpg

It only started to happen when I upgraded to 2.05. Before it would just remember to publish each post, now it's just annoying. :/

Help appreciated.

hydn 05-02-2009 11:28 PM

Seems your question is being ignored.

Quote:

Originally Posted by mnlawson (Post 1799926)
Are you able to ban Facebook Connect users from your site if they spam it?


mickknutson 05-05-2009 08:09 PM

I actually am getting a very strange error in FireBug:

Permission denied to call method Location.toString
http://static.ak.fbcdn.net/rsrc.php/...ect.js.pkg.php
Line 556

I have attached the screen shot as well...

In the upper right hand screen of firebug is this url:
http://static.ak.fbcdn.net/rsrc.php/...ect.js.pkg.php

So what the heck is this?

orkyn 05-06-2009 09:14 AM

It works...!!

Thx for great hack...

Keyser520 05-07-2009 02:33 PM

I went through all the instructions (including the optional steps), but I don't see where my users are supposed to link their fb account to their forum account?


All times are GMT. The time now is 10:46 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.04974 seconds
  • Memory Usage 1,851KB
  • 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
  • (3)bbcode_code_printable
  • (7)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
  • (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