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)

totogui 01-27-2009 01:30 PM

As indicated in the post https://vborg.vbsupport.ru/showthread.php?t=203262 I have enabled my vbulletin as an application in Facebook. Instead of having Facebook come to you .. you move your forum to Facebook. I don't know if people believe that it is more valuable to extend the forum in Facebook then enabling cross-login but please give it a try and provide me with feedback. Thanks.

indie2industry 01-27-2009 01:55 PM

Quote:

Originally Posted by tpearl5 (Post 1725335)
I created a file called fb_invite.php. You can see it in action here: http://cellphoneforums.net/fb_invite.php (note that it is uploaded to my forum root)

I haven't tested this fully yet. Make sure under "canvas" on your facebook setting you have it set to FBML. I haven't gotten around getting the canvas page to display correctly either, but that shouldn't matter since you are redirecting the user to your forum home.

You could add a conditional to your pages that say 'if facebook user, display 'invite friends'.

Here's the big question...



When people invite their friends, Will the new person appear as a referral??

example: I invite you using the fb_invite, and you accept the invitation, will my referral count increase???

tpearl5 01-27-2009 02:05 PM

Quote:

Originally Posted by indie2industry (Post 1726173)
Here's the big question...



When people invite their friends, Will the new person appear as a referral??

example: I invite you using the fb_invite, and you accept the invitation, will my referral count increase???

never thought of that, but I'm pretty sure that would require some additional coding to pass the username into the referral field.

indie2industry 01-27-2009 02:32 PM

Quote:

Originally Posted by tpearl5 (Post 1726186)
never thought of that, but I'm pretty sure that would require some additional coding to pass the username into the referral field.

:o :o :o

Do you think that would be a possible update. I'll see if I can figure it out also when I get back home.

BrAinZ 01-27-2009 03:14 PM

I still can't get this working :(

All template edits etc are done 100%, and CONNECT button shows on login screen, but when you click it, it just goes straight back/reloads the login screen.

Any ideas anyone?

maroceve 01-27-2009 07:25 PM

please can someone kindly take a look at my previous post ? Coders ?

plumbingskool 01-27-2009 10:10 PM

Agreed, can someone help me as well with my eariler post :(

peppy 01-28-2009 08:19 AM

Quote:

Originally Posted by peppy (Post 1723859)
Hi

I just installed 2.0.3 and I get a whole page of SQL appear as text when I try and map the fields

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]; $v

etc..

Has anyone else experienced this error? any idea what I might be able to do to resolve it?

indie2industry 01-28-2009 08:34 AM

To those who posted above........

I'm no expert but I'll see if I can figure it out... I'm not promising any results but if I come up with any, I'll post them.

indie2industry 01-28-2009 10:22 AM

Quote:

Originally Posted by tpearl5 (Post 1725335)
I created a file called fb_invite.php. You can see it in action here: http://cellphoneforums.net/fb_invite.php (note that it is uploaded to my forum root)

I haven't tested this fully yet. Make sure under "canvas" on your facebook setting you have it set to FBML. I haven't gotten around getting the canvas page to display correctly either, but that shouldn't matter since you are redirecting the user to your forum home.

You could add a conditional to your pages that say 'if facebook user, display 'invite friends'.

I just thought of something........


Can someone make an IFrame version of this??

or an FBML version of the facebook connect so they can work together??

Because of how this seems to work, looking at the setting in facebook, you can either use the Facebook Connect (because of the "IFrame" setting) or the fb_invite (because of the "FBML" setting) but not at the same time....


All times are GMT. The time now is 08:43 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.05320 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)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