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)

Bounce 01-07-2009 11:56 PM

Quote:

Originally Posted by masons_mum (Post 1704590)
problem solved, i uninstalled then reinstalled


Just tried that :eek:
Quote:

Conecta con Facebook para conversar con tus amigos en la p?gina web y compartir hist?rias en Facebook a trav?s de tu Wall y las ?ltimas noticias de tus amigos
:(:D

Quote:

Originally Posted by masons_mum (Post 1704590)
Another question though, if an existing user logs in using facebook, does it not add friends? is that only for new users? This mod of yours is working like a dream though!

Not sure, it does ask if you want to use you exsisting username (suppose that's if if you have one already registered)

Think it matches the email address from facebook to the one registered on yer forums

verino 01-08-2009 12:58 AM

Quote:

Originally Posted by sllik (Post 1704195)
You need to change your server config. Search google on how to deal with this.

Ok, I will do that. Thank's for your reply.

Another question is : when login to the forum with fbconnect and choose to use existing user, it automatically mapping the email address registered in facebook to user in the forum. Where can i see the mapping ? or there's a data table for it ?

For example : user A (registered user in forum) logged in with his email (his_email address in facebook) using fbconnect, then automatically user A logged in to the forum. Is there a way to change his forum username ? (in case he has 2 registered username in the forum) ?

giorgioarmani 01-08-2009 04:10 AM

Quote:

Originally Posted by hIBEES (Post 1704445)
logged in no problem and created an account for me but its not pasted anything to my facebook unless you have tht part disabled?

Yeah that's odd, sometimes it does it for me, sometimes not. Is there anything I can do?

Brandon Sheley 01-08-2009 05:42 AM

hopefully there are plans for a 3.8 version of this, or should it work just fine

thanks
-Brandon

phreak79 01-08-2009 06:56 AM

Quote:

Originally Posted by Calash (Post 1704212)
Well, I installed it today and it worked no problem with my eFiction bridge and vBadvanced. Great job :)


Can my current members connect to there facebook accounts as well? I looked all over and can not find an option for this in the user panel.


Thanks again.


Edit - Never mind, I found how to do it. Now I need to figure out how to add the same functions from the thread posting area to eFiction.

You could post here how to do it as I can't figure that bit out either :)

Edit - I've worked out how now too. Seems to be working like a charm at the moment. Great stuff :)

Digital Jedi 01-08-2009 06:58 AM

Quote:

Originally Posted by phreak79 (Post 1704869)
You could post here how to do it as I can't figure that bit out either :)

They have to logout and then log back in using the FBConnect button. Then when they're asked what screen name they want to use, there will be an option to use their existing account.

masons_mum 01-08-2009 09:04 AM

the ones having spanish language problems, i didnt just do a fresh install of the mod,, i made a fresh application too. Not sure which solved it though.

Wakey 01-08-2009 09:17 AM

Quote:

Originally Posted by sllik (Post 1704201)
what is your forum url again?

myfarmcommunity.com

jlew24asu 01-08-2009 10:09 AM

are people having to clear their cookies and cache everytime they log into their board?

I get this almost everytime

The Facebook Connect cross-domain receiver URL (http://sundeviltalk.com/xd_receiver....%220.711%22%7D) must have the application's callback url (http://www.sundeviltalk.com/) as a prefix. You can configure the callback url in the application's settings.





-------------

Calash 01-08-2009 11:36 AM

Has anybody played with having other activities outside of Thread stuff report back to Facebook yet? I thought I saw a link to some documentation on how to format requests, but I can not seem to find it. I was thinking of stuff like adding pictures, comments on profiles, and for my own use eFiction actions of story posting and reviews.

giorgioarmani 01-08-2009 01:24 PM

Quote:

Originally Posted by Calash (Post 1705057)
Has anybody played with having other activities outside of Thread stuff report back to Facebook yet? I thought I saw a link to some documentation on how to format requests, but I can not seem to find it. I was thinking of stuff like adding pictures, comments on profiles, and for my own use eFiction actions of story posting and reviews.

Wow that would be amazing but I'm already astonished at how much this mod does!

Digital Jedi 01-08-2009 03:43 PM

Quote:

Originally Posted by jlew24asu (Post 1704988)
are people having to clear their cookies and cache everytime they log into their board?

I get this almost everytime

The Facebook Connect cross-domain receiver URL (http://sundeviltalk.com/xd_receiver....%220.711%22%7D) must have the application's callback url (http://www.sundeviltalk.com/) as a prefix. You can configure the callback url in the application's settings.





-------------

I just tried going back to your board and logging in again. It logged me right in with no problems from the vBa homepage. I then logged out and back in just in case from your forum home page and I still didn't receive any errors. And I'm still on a the same browser session as when I registered. (Yeah, I know, I should probably restart this thing)

jlew24asu 01-08-2009 04:03 PM

Quote:

Originally Posted by Digital Jedi (Post 1705249)
I just tried going back to your board and logging in again. It logged me right in with no problems from the vBa homepage. I then logged out and back in just in case from your forum home page and I still didn't receive any errors. And I'm still on a the same browser session as when I registered. (Yeah, I know, I should probably restart this thing)

LOL you havn't restarted your browser since originally registering? would you mind restarting your browser and trying again?

L2V 01-08-2009 04:13 PM

Quote:

Originally Posted by jlew24asu (Post 1704988)
are people having to clear their cookies and cache everytime they log into their board?

I get this almost everytime

The Facebook Connect cross-domain receiver URL (http://sundeviltalk.com/xd_receiver....%220.711%22%7D) must have the application's callback url (http://www.sundeviltalk.com/) as a prefix. You can configure the callback url in the application's settings.
-------------

One thing I notice is that the cross-domain receiver URL is lacking the www that is specified in the application's callback url... Try to go back to your page but with (or without) the www in there and try again.

One thing I;ve done on my site is to add the following to the start of the htaccess file to 301 redirect any www.domainname.com addresses to a domainname.com address instead.

Code:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

This is for Apache with mod-rewrite enabled... And, no, sorry... I can't offer help on mod-rewrite if you can't figure it out. :(

Hope this helps!

jlew24asu 01-08-2009 04:29 PM

Quote:

Originally Posted by L2V (Post 1705281)
One thing I notice is that the cross-domain receiver URL is lacking the www that is specified in the application's callback url... Try to go back to your page but with (or without) the www in there and try again.

thanks for the reply. I've been down this road so many times I was forced to just pay for a professional install. I tried pretty much every www http senario out there. since the pro, its been working more often but I'm still getting this error. I really hope me and my users are not forced to clear cookies and cache everytime they try to log in.

Quote:

Originally Posted by L2V (Post 1705281)
One thing I;ve done on my site is to add the following to the start of the htaccess file to 301 redirect any www.domainname.com addresses to a domainname.com address instead.

Code:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

This is for Apache with mod-rewrite enabled... And, no, sorry... I can't offer help on mod-rewrite if you can't figure it out. :(

Hope this helps!

I don't use htaccess

ClaytonR 01-08-2009 04:45 PM

I have a issues, for some reason my users have the wrong person's picture, it was working fine then this morning it had them all with the profile pic of one of our administrators.

EDIT its only happening with avatars in the posts, their avatars are correct on the memberlist.

Digital Jedi 01-08-2009 05:08 PM

Quote:

Originally Posted by jlew24asu (Post 1705273)
LOL you havn't restarted your browser since originally registering? would you mind restarting your browser and trying again?

Still no problems. This time I was auto logged in. Logged out again with no problems either.

jlew24asu 01-08-2009 05:16 PM

Quote:

Originally Posted by Digital Jedi (Post 1705345)
Still no problems. This time I was auto logged in. Logged out again with no problems either.

ok thanks for checking.

Caddyman 01-08-2009 09:31 PM

ok i gotta post

GREAT MOD! really i am impressed!

installed!

on a new signup from facebook all is well

i can also hit it, enter fb info on the fb login on my forum then click "use existing username" on the nickname popup and login with a existing account just fine

BUT

when doing that and linking to a existin account i dont get the popups for posts and the fbconnect email settings link in the usercp and all....

anyone know why?

floggerss 01-08-2009 10:10 PM

It is possible that users that have an user in the forum can use their facebook account. Not to register a new one???

Wakey 01-08-2009 10:11 PM

Quote:

Originally Posted by ClaytonR (Post 1705311)
I have a issues, for some reason my users have the wrong person's picture, it was working fine then this morning it had them all with the profile pic of one of our administrators.

EDIT its only happening with avatars in the posts, their avatars are correct on the memberlist.

Its the issue I have been having as, their locations will also be afflicted with the same issue but only on the posts, profile and memberlist will be fine

bojan.vasiljev 01-09-2009 12:34 AM

Can I get some help?

I installed this plugin and when I try to map facebook data or go to member profile following shows up on the screen

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

giorgioarmani 01-09-2009 07:22 AM

Quote:

Originally Posted by Caddyman (Post 1705598)
ok i gotta post

GREAT MOD! really i am impressed!

installed!

on a new signup from facebook all is well

i can also hit it, enter fb info on the fb login on my forum then click "use existing username" on the nickname popup and login with a existing account just fine

BUT

when doing that and linking to a existin account i dont get the popups for posts and the fbconnect email settings link in the usercp and all....

anyone know why?

I have the same problem and take it that this is due to the usergroup settings.

Caddyman 01-09-2009 11:26 AM

that said though...

fbconnect doesnt have a certain usergroup to make it work does it? it just makes you pick a default group to add people to...

guess im saying, if you were to add these users to that group, i dont think that would fix the issue would it?

giorgioarmani 01-09-2009 12:35 PM

Well the way I understood the instructions was that we had to create a totally separate usergroup, which I did. Thus when you select a username that already exists it doesn't work the same way...

verino 01-09-2009 01:40 PM

Quote:

Originally Posted by floggerss (Post 1705639)
It is possible that users that have an user in the forum can use their facebook account. Not to register a new one???

You just need to change in your admin panel \ FB connect options : default user group id : 2 (registered user). Hope this helps

masons_mum 01-09-2009 05:23 PM

argh dilemma, the facebook connect mod is fantastic...but i have used the process of elimation to find that it stops the facebook status modification working :( My members want the status, but i have had five new members join up using this mod. I cant work out where the conflict is, other than it has something to do with ajax. i dont suppose anyone has any ideas what it could be?

Baldilocks 01-09-2009 05:37 PM

I'll install this if it ever does Auto-Template updates. With 30+ skins, it makes it way too daunting of a task. LOL

Great mod though.

ekantnl 01-09-2009 10:04 PM

Question: Everything goes okay, till the moment I hit the "Register Default Templates" link. Nothing happens... ? It finds or does nothing. Any suggestions?

bigtime 01-10-2009 05:12 AM

Has anyone tried this with 3.8?

jlew24asu 01-10-2009 12:12 PM

yes, it works on 3.8. my board is 3.7 but I read in this thread of people using it on 3.8.


question: I'd like to add a connect to facebook link in my navigation module on CMPS. does anyone know the http link of this hack?


www.sundevilktalk.com

GTX2 01-10-2009 09:17 PM

I know it says 3.7 on the top, but is this working in 3.6.x ? Anyone tried?

This hack is amazing !!

dxlwebs 01-11-2009 05:04 AM

hey i have the same problem as playsocial

i set up every thing properly and added all the files and done all setting but when i click the connect to face book it does nothing can anyone help me please

Digital Jedi 01-11-2009 05:26 AM

Quote:

Originally Posted by dxlwebs (Post 1708243)
hey i have the same problem as playsocial

i set up every thing properly and added all the files and done all setting but when i click the connect to face book it does nothing can anyone help me please

Your site gives off a javascript error when I visit it. Probably something in your headinclude is not right, not necessarily related to the mod you just added.

dxlwebs 01-11-2009 05:33 AM

what error does it give??

Digital Jedi 01-11-2009 05:43 AM

Quote:

Originally Posted by dxlwebs (Post 1708268)
what error does it give??

A Line 2196 sytntax error, and one that says bburl is not defined on Line 12. Sounds like you've made some copying and pasting errors somewhere.

dxlwebs 01-11-2009 06:43 AM

i have checked and i cannot see any errors on the site !

which page are you on ?

*****************
edit
*****************

i see the two errors now but i dont know where the problem is it all seems fine to me !

i dont know where to look for the bburl though

GTX2 01-11-2009 10:13 AM

version 2.0.2 was not working with the old vb 3.6.4 but after removing it and installing the 1.1.3 facebook hack version, is now working 100% with vbulletin 3.6.4

Thanks!!! :D

dxlwebs 01-11-2009 10:38 AM

ok i fixed that problem it was a human mistake :D ie ME lol

now it comes up but once i login and choose my nickname after that i get this error

Code:

Warning: strpos() [function.strpos]: Empty delimiter. in [path]/includes/class_dm_user.php(2894) : eval()'d code on line 11

Fatal error: Call to a member function clean_gpc() on a non-object in /htdocs/forum/includes/class_dm_user.php(2900) : eval()'d code on line 54

any one know what that is?

also i get this as well in the register templates part
Code:

Warning: fopen(http://api.facebook.com/restserver.php) [function.fopen]: failed to open stream: HTTP request failed! in [path]/includes/facebook/facebookapi_php5_restlib.php on line 2487

burlesque 01-11-2009 12:36 PM

I've managed to successfully install this mod on two of my forums running 3.7.4 and 3.8.0 respectively, however, I've tried to add this to another one which uses 3.7.0 and even though the Facebook Connect button appears, nothing happens when I click it.

I've gone over the template edits THREE TIMES and everything is fine and I've also tried removing javascripts from my HEADINCLUDE file one at a time to see if there are any conflicts - however, whatever I do, it won't come up with the popup window.

Can someone help here? I'm tearing my hair out!


All times are GMT. The time now is 04:12 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.03078 seconds
  • Memory Usage 1,865KB
  • 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
  • (4)bbcode_code_printable
  • (21)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