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....

tpearl5 01-28-2009 12:04 PM

Quote:

Originally Posted by indie2industry (Post 1726205)
: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.

I honestly wouldn't know how to code around that.
Quote:

Originally Posted by indie2industry (Post 1727062)
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....

for what reason? iframe is kind of going backwords. If you really want a canvas page you'd be better off just making one, but It's really not needed since 'the application' is your site. If anything there could be a redirect from the canvas page to your forum.

Keep in mind that when you load http://apps.facebook.com/yourcanvasname it is looking in http://yourcallbackurl.com/ for fbml. This is why you get an error when loading that page - it is looking at index.php

Also, this mode does use fbml.

Pokerbanter 01-28-2009 12:34 PM

So will this work with php 4.4.1???

tpearl5 01-28-2009 12:44 PM

Quote:

Originally Posted by Pokerbanter (Post 1727166)
So will this work with php 4.4.1???


as stated several times in the thread and at the top:

Quote:

Server Requirements:
PHP 5

mikeB 01-28-2009 05:15 PM

ok so I see now it's just PHP 5 req - does anyone know if upgradig to PHP 5 (from 4.x) will afftect Wordpress 2.5 installations? is wp / php 5 ok?

Bacon Butty 01-29-2009 09:27 AM

Quote:

This add-on allows your guests and existing users to login with their Facebook account through Facebook Connect.
When existing users login with their facebook accounts, they are prompted to create a new nickname? - Prompting questions of "how do those of us who already have accounts here log on with Facebook?"

Any ideas? :confused:

fmckinnon 01-29-2009 10:04 AM

Bacon,
That's covered many times in this thread already (I asked the same question many pages back) ... the way it works is this - you can choose a new nickname, or if you already are registered, you can choose "use existing nickname or ID".

So, for members who are already registered, but wish to connect to their FaceBook account, they should enter their FaceBook credentials, then on the next screen, choose "use existing ID".

Great app - FaceBook.Com is now consistently the #1 referring site in our Google Analytics for http://www.theworshipcommunity.com

dxlwebs 01-29-2009 10:12 AM

well i don't know about other poeple but i installed this well over week or two ago and i had the same problem which i posted countless times here and never got areply so i have removed this mod untill i can get a answer to my problems its a good idea just a shame the developer never replied!

fmckinnon 01-29-2009 11:50 AM

sllik,

What an incredible app - thanks for making this. I wonder if you've be interested in coding the same type of app, except for Twitter?

There is already a twitter app that updates your FaceBook status - so I'm guessing the API and code hopefully isn't too complex.

There is also an existing Twitter plugin that I already have installed, that lets you add your twitter ID to your User Profile, and shows your most recent posts.

The next step would be to have that option, just like with FaceBook, so that you could elect to "tweet this post" ... I guess the question is ... if you had both going at once, you'd have multiple popups (tweet this post, facebook this post, etc)

Hex_legend 01-29-2009 02:50 PM

I've posted this under general vb discussions, but this must be something to do with this mod, due to the person in question is a facebook user:


I have a user on my board who's avatar has changed to someone else's album picture - yes, album picture on 2 threads.
It's really random as she has her own avatar, so why is it pulling someone elses album picture and resizing it? It's not doing it on all her threads either.

I have rebuilt all stats and avatars in maintainence, but that's not doing anything.

Anyone have any ideas?

sllik 01-29-2009 02:59 PM

Quote:

Originally Posted by Hex_legend (Post 1728181)
I've posted this under general vb discussions, but this must be something to do with this mod, due to the person in question is a facebook user:


I have a user on my board who's avatar has changed to someone else's album picture - yes, album picture on 2 threads.
It's really random as she has her own avatar, so why is it pulling someone elses album picture and resizing it? It's not doing it on all her threads either.

I have rebuilt all stats and avatars in maintainence, but that's not doing anything.

Anyone have any ideas?

An album picture is not possible. It must be his profile picture... Did you upgrade to 2.0.3?

Hex_legend 01-29-2009 03:25 PM

Yeah, I installed the latest version.
We found out part of the problem (Lynne and I)

When the product is disabled, it looks for noavatar.gif, but when it is enabled, it is getting the avatars from:

http://profile.ak.facebook.com/v228/...15507_3384.jpg

Thus showing the wrong avatars.
This is really causing me trouble and if this is not sorted, I will have to uninstall this feature, which I really dont want to do

cynthetiq 01-29-2009 05:38 PM

Quote:

Errors while loading page from application

Parse errors:

FBML Error (line 329): illegal tag "body" under "fb:canvas"There are still a few kinks Facebook and the makers of Tertulia Forums are trying to iron out. We appreciate your patience as we try to fix these issues. Your problem has been logged - if it persists, please come back in a few days. Thanks!

I get this error when I set my canvas page to FBML. it works fine in IFRAME. Is this the correct setting?

sllik 01-29-2009 10:38 PM

Quote:

Originally Posted by cynthetiq (Post 1728296)
I get this error when I set my canvas page to FBML. it works fine in IFRAME. Is this the correct setting?

yes

sllik 01-29-2009 10:39 PM

Quote:

Originally Posted by Hex_legend (Post 1728217)
Yeah, I installed the latest version.
We found out part of the problem (Lynne and I)

When the product is disabled, it looks for noavatar.gif, but when it is enabled, it is getting the avatars from:

http://profile.ak.facebook.com/v228/...15507_3384.jpg

Thus showing the wrong avatars.
This is really causing me trouble and if this is not sorted, I will have to uninstall this feature, which I really dont want to do

What do you mean? its the same avatar for everyone?

Hex_legend 01-30-2009 09:26 AM

not everyone, but for a lot of users.
someone has just changed their picture on facebook, and its changed a few other users avatars to the same one.
It's really weird.

AlexanderT 01-30-2009 11:18 AM

sllik, suggestion: Rather than relying on your own password generator (that's, I figure, a snippet from public domain), why not using fetch_random_password($length) from vb's functions.php?

AlexanderT 01-30-2009 11:53 AM

Another suggestion: You could add an extra column to the user db table do store a copy of the mapped fbuid. This way you could save the extra query from get_fb_uid() in showthread, newthread, and newreply and have quick everywhere-present access to figure out whether the logged-in user was created via facebook.

Alternatively, without adding this extra column, you could hook fetch_userinfo_query and add the info from your fbuser table like this:

PHP Code:

$hook_fields = array("fbuser.fbuid");
$hook_joins = array("LEFT JOIN " TABLE_PREFIX "fbuser AS fbuser ON (fbuser.userid = user.userid)",);
$hook_query_fields .= ', ' implode(', '$hook_fields);
$hook_query_joins .= "\r\n" implode("\r\n"$hook_joins); 

to add the fbuid (if present) to the global userinfo array (untested, but in principle it should work).

Blackhat 01-30-2009 12:31 PM

this mod didnt work for me and Im using 3.8.0 and php 5

jlew24asu 01-30-2009 01:04 PM

this mod has stopped working, yet again.

are we going to be forced to upgrade everytime or what?

whats not working?......nothing happens when you click Connect with Facebook

www.sundeviltalk.com


any mind trying for me?




------

Digital Jedi 01-30-2009 01:06 PM

Quote:

Originally Posted by jlew24asu (Post 1729108)
this mod has stopped working, yet again.

are we going to be forced to upgrade everytime or what?

whats not working?......nothing happens when you click Connect with Facebook

www.sundeviltalk.com


any mind trying for my account?




------

Still works for my account.

jlew24asu 01-30-2009 01:10 PM

Quote:

Originally Posted by Digital Jedi (Post 1729112)
Still works for my account.

ugh thanks for trying. its spotty at best for me. worked once in 5 tries this morning. each time clearing cookies/cache etc. sorry Im just frustrated.

Digital Jedi 01-30-2009 01:12 PM

You think maybe you have something on your computer interfering with logging in? Spyware or something like that?

jlew24asu 01-30-2009 01:16 PM

Quote:

Originally Posted by Digital Jedi (Post 1729121)
You think maybe you have something on your computer interfering with logging in? Spyware or something like that?

I highly doubt it. I'm on a OS that is barely a month old. and I can log in to all the other boards I post on.

my only problem (90% of the time) is when I click on connect with facebook, nothing happens.

www.sundeviltalk.com/# at the bottom.

Digital Jedi 01-30-2009 01:22 PM

Quote:

Originally Posted by jlew24asu (Post 1729126)
I highly doubt it. I'm on a OS that is barely a month old. and I can log in to all the other boards I post on.

my only problem (90% of the time) is when I click on connect with facebook, nothing happens.

www.sundeviltalk.com/# at the bottom.

The link is as it should be. It's not really linking to anything, just giving a place for users to click.

Have you had the same problem logging into FaceBook itself, without using FBConnect? Depending on your browser, infections can occur in only a matter of hours after connecting to the intenet.

jlew24asu 01-30-2009 01:25 PM

Quote:

Originally Posted by Digital Jedi (Post 1729133)
The link is as it should be. It's not really linking to anything, just giving a place for users to click.

Have you had the same problem logging into FaceBook itself, without using FBConnect? Depending on your browser, infections can occur in only a matter of hours after connecting to the intenet.

no, I've had no problems with anything else besides clicking on the link and nothing happening.

cynthetiq 01-30-2009 01:34 PM

I just tried and it works... you can delete user:

vbulletinvisitor if you like

Hex_legend 01-30-2009 02:07 PM

Can anyone look into the avatar issue?
www.thesocialmeet.com
You will see that a lot of users have the same avatars.
You dont need to register to see this.

cynthetiq 01-30-2009 02:12 PM

i just looked and don't see same avatars. maybe you should refresh your cache or provied a link for a thread that you see it in.

cynthetiq 01-30-2009 02:16 PM

I just logged and posted and see my avatar

Hex_legend 01-30-2009 02:18 PM

<a href="http://www.thesocialmeet.com/showthread.php?t=7" target="_blank">http://www.thesocialmeet.com/showthread.php?t=7</a>
lou and walkingcorpse have the same avatar

the avatar is walking corpse's. if you look at lou's profile, she has a different one uploaded


All times are GMT. The time now is 10:52 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.02241 seconds
  • Memory Usage 1,852KB
  • 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
  • (1)bbcode_php_printable
  • (19)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