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)

m0nde 03-11-2009 03:23 PM

Quotes below outline exactly the problems I'm facing.

It's impossible for me to associate existing accounts with fbConnect.
I have tried this several times with my own account and I am unable to get anything to show up on my Facebook wall when I post a new thread.

I think that a great deal of the issues people are having would be solved if this was installed via vBulletin's plug-in architecture instead of relying on template edits.
Please consider this, or let someone who knows how to use the vB plug-in API set this up.

If this only works for new users and new users' emails aren't set up properly, I'm going to have to uninstall this.

Good idea for an add-on, but, unfortunately, several problems still remain...

Quote:

Originally Posted by smnet (Post 1757502)
ok. I think this is going to be a recurring request. Until this is sorted I will have to uninstall the application.

Currently, there is no way to associate EXISTING MEMBERS with a facebook account - according to the mod description on .org it seems as though it should be possible - but it's not.

Steps to reproduce:-
1. Logout
2. Sign in with facebook connect
3. Dont choose a nickname, instead click on the existing user
4. Login to your board
5. We can now assume the vb account is facebook connected - NO ITS NOT

Maybe this is only a bug / problem on my board.

Can anyone confirm or deny the above to be true for them?

@Uninstalled until resolved

Quote:

Originally Posted by smnet (Post 1759501)
Sllik,

Regarding the issue i'm having with existing users logging in via facebook.... quite simply, its not working on my board.

At the point where you enter your vbulletin user / pass to associate with facebook I can see that the fbuid is set as a hidden field in the fblogin.php page and posted over to the standard login page with the form.... This is fine, but I am having great difficultly pinning down where in the code this value is requested back in. I cant see anywhere in a plugin or file where POST is checked for this value... If I can find that then I can resume tracing this bug down.

It may be down to other mods i have installed, but i'd really really like this resolved. can you help?

Quote:

Originally Posted by GetGamer.com (Post 1762639)
I'm still having two BIG problems that if I can't find an answer to, I will have to uninstall this mod.

First, Connect with Facebook is working fine for NEW users, but when an existing forum user tries to use it, the connection is never made. They login to the forums, but there is no connection to their Facebook account. (And yes, they are using the "Connect with Facebook" button, logging into Facebook, then clicking the "Use existing account" link as they are supposed to.

I've attached a screenshot that shows a NEW user is properly receiving the Facebook notifications. Existing users have tried and tested every which way, but their existing forum account never gets connected with their Facebook account.

The second problem is (I think) a minor issue. The window (IFRAME?) that contains the Facebook login screen that pops up when someone clicks the Connect with Facebook button is not "tall" enough to reveal the "Connect" and "Cancel" buttons. How can I make this window a little bigger?

I've also attached a screenshot of that just to show what I mean.

If I can resolve these two problems, I will gladly endorse, use and contribute to this mod. If I can't, I'll have to uninstall.


mykkal 03-11-2009 06:09 PM

I have the same issue...

frogster 03-12-2009 12:44 AM

Not sure if this has happened to anyone or if anyone has noticed but all of the problems I had with this mod (iframe too small & not connecting existing users with FB) have automatically been resolved.

The only problem I still seem to have is that a user can only have one item posted on their FB wall per day and it's the last item they have posted in the forum whether it's a new login/new thread/reply. Does this happen to anyone else or not...thanks.

frogster 03-12-2009 12:47 AM

Quote:

Originally Posted by intelgio2 (Post 1765785)
There seems to be a conflict between this mod and the Social bookmarking navbar mod (https://vborg.vbsupport.ru/showthrea...ight=sharethis)... has anyone found a workaround for this?

The navbar mod creates its own Navbar template. i have attenpted to add the code to that file and have failed miserably :erm:

I am in no way a pro as I just started this entire vBulletin thing BUT what I did was add the FB button code to the navbar_additions mod this mod created. Let me know if you need further explanation.

nashvilleparks 03-12-2009 07:16 AM

I'm just getting started with VB and this is only my second mod so I'm hoping this is just a dumb newbie problem and someone will know the answer. I've read every post in this thread and have tried everything I could think of without any luck.

I'm stuck on step 5. When I click "FB Connect Options > News-Feed Templates" I get this:

"Warning: fopen(http://api.facebook.com/restserver.php) [function.fopen]: failed to open stream: Connection timed out in [path]/includes/facebook/facebookapi_php5_restlib.php on line 2487"

If I click on Register Default Templates underneath the Registered News-Feed Templates box, that just times out too.

I've reloaded all files, reinstalled the whole mod, deleted my FB application and tried it different ways, and it shouldn't be my PHP (PHP Version 5.2.6-1+lenny2). It seems like it has to be something with FB that I'm doing wrong (I don't know anything about FB and only signed up for an account to do this). If anyone has any ideas PLEASE let me know. Thanks!

JBMoney 03-13-2009 04:37 PM

Any chance this would run on PHP Version 4.4.5?

mykkal 03-13-2009 04:53 PM

Quote:

Originally Posted by JBMoney (Post 1767307)
Any chance this would run on PHP Version 4.4.5?

nope. you'll have to upgrade.

nMIK-3 03-13-2009 10:03 PM

Quote:

Originally Posted by turbosatan (Post 1763110)
I have the problem where the iframe is not tall enough also.

Can anyone advise a way to change this?

EDIT
ok so i found http://wiki.developers.facebook.com/...sizable_IFrame this page. on the canvas page of the facebook app setup you can specify a resizeable iframe instead of a "Smartsize"

There are some details on this page on how to modify some of the code to make itr fit the content size.

But i am no coder. Can anyone who knows their way around code take a look and see if there is a simple one liner that can change this.

I fix this, by uploading the whole package again and import the XML file.
But now I am getting an error after I create a post.

I am not getting the publish to facebook question... instead I am getting a faceboook error :mad:

Code:

Application response error

Invalid template bundle id specified: XXXXXXXXXX. You can see this because you are one of the developers of the app.

Any idea how to correct this? I reset the News-Feed Templates but it didn't fix it.

mikeB 03-14-2009 06:32 PM

does anyone have this working with the "new" facebook layout launched yesterday? mt fb connect now shoots me an error when I hit publish

smnet 03-14-2009 07:08 PM

This mod is dead. Everyone who has installed it is basically screwed because you cannot uninstall it otherwise your members who signed up via facebook wont be able to login.

The author released this mod with bugs, fixed a few... then abandoned it.

What's worse is that this is in the running for mod of the month - I cant believe it. I voted it 'terrible'.

For anyone who disagrees, I would suggest you read this thread properly and then ask yourself if this thread deserves a 'supported' flag. This is the least supported mod I've ever seen.

I'm not being ungrateful - I know releasing mods takes hard work.... but releasing them is easy - supporting them harder. I see no point in releasing a mod, not patching the holes and leaving everyone who has installed it 'trapped' - this sucks.

/rant

mikeB 03-14-2009 07:39 PM

Quote:

Originally Posted by smnet (Post 1768137)
This mod is dead. Everyone who has installed it is basically screwed because you cannot uninstall it otherwise your members who signed up via facebook wont be able to login.

The author released this mod with bugs, fixed a few... then abandoned it.

What's worse is that this is in the running for mod of the month - I cant believe it. I voted it 'terrible'.

For anyone who disagrees, I would suggest you read this thread properly and then ask yourself if this thread deserves a 'supported' flag. This is the least supported mod I've ever seen.

I'm not being ungrateful - I know releasing mods takes hard work.... but releasing them is easy - supporting them harder. I see no point in releasing a mod, not patching the holes and leaving everyone who has installed it 'trapped' - this sucks.

/rant


It was working fine for me I love it and so do my members - I hired the dev to install and he was there to do it and he couldnt have forseen fb making an internal change the way they did so Im sure he'll fix it

thats my opinion - I have 250 monthly users now so I see this as invaluable and because its so new, you have to cut some slack - its something someone made for free!

sllik 03-14-2009 11:54 PM

It seems there is a problem with the news-feeds after the last facebook update. There is nothing I can do about it, but facebook IS aware of the issue and hopefully they'll fix it soon.

I would suggest you guys disable the news-feeds in your vbconnect settings (set Enable Feeds to No) for now.

fattony69 03-15-2009 08:46 AM

Quote:

Originally Posted by smnet (Post 1768137)
This mod is dead. Everyone who has installed it is basically screwed because you cannot uninstall it otherwise your members who signed up via facebook wont be able to login.

The author released this mod with bugs, fixed a few... then abandoned it.

What's worse is that this is in the running for mod of the month - I cant believe it. I voted it 'terrible'.

For anyone who disagrees, I would suggest you read this thread properly and then ask yourself if this thread deserves a 'supported' flag. This is the least supported mod I've ever seen.

I'm not being ungrateful - I know releasing mods takes hard work.... but releasing them is easy - supporting them harder. I see no point in releasing a mod, not patching the holes and leaving everyone who has installed it 'trapped' - this sucks.

/rant

Jeez, calm down. I have been following this mod and he is doing he can. I don't see you being nice. Maybe a thank you. Even donating to help him out? Instead you complain. He has updated the mod many times and talking to facebook, what else do you want?

FireStorMZ 03-15-2009 01:14 PM

When i use http://mysite.com it works but when i use http://www.mysite.com it does not work .. What may be the problem ?

Thank you

cory_booth 03-15-2009 01:38 PM

Cookies probably -
Use .htaccess to redirect all non-www to www

ULSS 03-15-2009 05:00 PM

sllik.. are you still offereing professional installs? I've done most of the steps, but somethings not right, so i've disabled it for now. But i'd like to have you finish it and get it working. Let me know and i'll PP you.. the site is http://BowlingTracker.com

Thanks..

ljcaswell 03-15-2009 08:44 PM

Installed yesterday and works very well, but noticed two issues:

1. When I tried to use the "Use your existing Login" link, it simply let me login with my existing login. It didn't update my Facebook profile or update it when I posted a test post.

2. When I created a new ID on the forum, it asked me if I wanted to grant permission to update Facebook. I tried to click the Publish button, but nothing happened. I clicked cancel, and it logged me in fine, but no messages appeared on my Facebook profile. I went into Facebook and manually granted the app permissions to publish, and now it works fine. I get messages on my Facebook profile when I post, reply etc, but this is obviously not ideal.

Wakey 03-16-2009 12:57 AM

Quote:

Originally Posted by sllik (Post 1768349)
It seems there is a problem with the news-feeds after the last facebook update. There is nothing I can do about it, but facebook IS aware of the issue and hopefully they'll fix it soon.

I would suggest you guys disable the news-feeds in your vbconnect settings (set Enable Feeds to No) for now.

What I did was go through all the Facebook Connect Templates looking for calls to FB.Connect.showFeedDialog

Inside all those functions I changed FB.FeedStorySize.oneLine to null. Its not ideal as it now wants to post short stories rather than the one line ones but its a temp fix that works

cngrock 03-16-2009 08:57 AM

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

smnet 03-16-2009 11:38 AM

I honestly presumed that this mod had been abandoned. As such I was annoyed because we've over 100 new members via facebook, so was feeling rather 'trapped' in using a mod that only half works.

I apologise for my outburst sllk.

frogster 03-16-2009 11:09 PM

Sillk...I meant to post this https://vborg.vbsupport.ru/showthrea...32#post1768032 here.

I'm having the same problem as TriMe did when he installed this mod and already had the FB contact grabber. It has something to do with having to FB libraries installed and you have to comment out something on one of them but I can't figure it out. Can you please tell him what you did for TriMe so I can fix mine too.

Thanks in Advance.

m0nde 03-17-2009 10:01 AM

Quote:

Originally Posted by mikeB (Post 1768173)
It was working fine for me I love it and so do my members - I hired the dev to install and he was there to do it and he couldnt have forseen fb making an internal change the way they did so Im sure he'll fix it

thats my opinion - I have 250 monthly users now so I see this as invaluable and because its so new, you have to cut some slack - its something someone made for free!

i'm glad sillk is still maintaining the mod and finding out why some of the features aren't working. again, he is doing it for free and we have to realize that.

I hope some of the major problems are fixed soon. I'm very excited about having a facebook presence.

marshal_ramdev 03-17-2009 01:06 PM

thank you

rider3160 03-17-2009 02:59 PM

sllik I pmed you please respond

fmckinnon 03-17-2009 04:22 PM

hey gang,
I'm posting here, too - same problems and issues, didn't realize they were affecting everyone since the FB update . .I'm following this 3.7 thread and the 3.8 thread, as I have it installed on both, different forums ... looking forward to a patch or update that will resolve it.

mikeB 03-17-2009 08:43 PM

Quote:

Originally Posted by playSocial (Post 1769250)
What I did was go through all the Facebook Connect Templates looking for calls to FB.Connect.showFeedDialog

Inside all those functions I changed FB.FeedStorySize.oneLine to null. Its not ideal as it now wants to post short stories rather than the one line ones but its a temp fix that works

hey there can you possibly explain this in a bit more detials for dummies so I can get it patched until its fixed? thanks in advance!

Wakey 03-18-2009 07:49 AM

Quote:

Originally Posted by mikeB (Post 1770708)
hey there can you possibly explain this in a bit more detials for dummies so I can get it patched until its fixed? thanks in advance!

Just do a search in the Facebook Connect templates for the term FB.Connect.showFeedDialog

Anywhere that appears in the templates replace it with the term null

Rather than posting a one line story this will make it post a short story, a short story is the one line story proceeded by a comment from you (Which you get to choose when publising the story). You can ofc leave the comment blank and it will post like a normal short story.

mykkal 03-18-2009 07:54 AM

Quote:

Originally Posted by sllik (Post 1768349)
It seems there is a problem with the news-feeds after the last facebook update. There is nothing I can do about it, but facebook IS aware of the issue and hopefully they'll fix it soon.

I would suggest you guys disable the news-feeds in your vbconnect settings (set Enable Feeds to No) for now.

Seems to be working for me. When I post the thread appears as a story on facebook.

jiffylb1 03-18-2009 05:23 PM

Is there a hack like thsi for myspace also?

mikeB 03-18-2009 05:37 PM

Quote:

Originally Posted by playSocial (Post 1770970)
Just do a search in the Facebook Connect templates for the term FB.Connect.showFeedDialog

Anywhere that appears in the templates replace it with the term null

Rather than posting a one line story this will make it post a short story, a short story is the one line story proceeded by a comment from you (Which you get to choose when publising the story). You can ofc leave the comment blank and it will post like a normal short story.

it's not erroring and freezing - but its also not posting to my profile? I found 4 templates when I searched - it only posts to my profile when I selce tthe option always post and never prompt

mykkal 03-18-2009 05:49 PM

Myspace uses Open ID. If you know that serivce you can. They also have dev API's.

andrej770 03-19-2009 04:29 AM

Ok, I am a new vB owner and I am loving it so far. So, I follow the setup instructions to the "T" for FBC (2.0.5) to start working (template edits and all). Everything appears to be working from a cursory view; I see the FB icon below the login box and when I click it the FB api kicks in and I get the FB login (I haven't gone any further than this yet) - Yes I did all the FB setup per the instructions too!

The question I have is, when in FB Connect Options->Data Mapping->Map Facebook data, only the following vB fields are available in the dropdown to map:

Biography
Location
Interest
Occupation
Profile Picture
Avatar

Yet on the Facebook drop down there are :

Facebook UID
Name
Last Name
First Name
Facebook Profile URL
Profile Picture
Small Profile
Square Profile

I know in the instructions there should be some field mapping. First what fields should I be mapping, second does vB have all the appropriate fields and third, how do I add fields to match FB.

Thanks

Andrej770

Great Mod Silk - donation coming!

m0nde 03-19-2009 09:02 AM

Quote:

Originally Posted by mykkal (Post 1770972)
Seems to be working for me. When I post the thread appears as a story on facebook.

myykal. are you able to get this mod working for exisiting members? that is where i am completely stymied.

RedDevil 03-19-2009 02:41 PM

just updated here :) working fine apart from the avatar has stopped displaying, however this may be due to another hack, a std avatar works fine when set in user cp.


excellent mod.

ljcaswell 03-19-2009 03:10 PM

Quote:

Originally Posted by m0nde (Post 1771718)
myykal. are you able to get this mod working for exisiting members? that is where i am completely stymied.

Yes - It works!

I clicked the Connect With Facebook button, clicked the link to login with my existing user name, it logged me in, then I made a test post and it reported it on Facebook.

The only thing I didn't see was a post on Facebook saying that I joined, but that may be because I had joined already with a different user name on the forum.

Great Mod!

paintballer.ie 03-19-2009 03:36 PM

I would like to reinstall this.

Is it safe to say that the latest update fixed some of the main issues people reported?

Vinyljunky 03-19-2009 03:55 PM

I get an error at Step 5 of the setup

Quote:

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).
I just get an error "Sorry, there has been a page error"

I think it maybe because my host enforces firewall rules :mad:

Does this sound feasible?

Could somebody help and tell me what DNS name FB Connect tries to connect to

Thanks

VJ

mikeB 03-19-2009 07:34 PM

got it going 100% again thx for the update!!

Burnt 03-19-2009 08:22 PM

*EDIT* Seemed to have fixed itself later on.... LOL Anyways seems to work!

m0nde 03-19-2009 08:54 PM

I tried it again using the fbConnect button and when I posted a new thread it actually brought up a dialogue to post a message to facebook. That never came up before. Thanks for the 2.05 fix!


All times are GMT. The time now is 07:22 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.02280 seconds
  • Memory Usage 1,871KB
  • 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_code_printable
  • (17)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