Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Facebook Connect - Update for Facebook PHP SDK (v.3.0.0) Details »»
Facebook Connect - Update for Facebook PHP SDK (v.3.0.0)
Version: 3.0.5, by mtbikemike mtbikemike is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.8.7 Rating:
Released: 09-12-2011 Last Update: 09-29-2011 Installs: 56
DB Changes Uses Plugins Template Edits
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

I rewrote this plugin using ideas from sllik's mod.

Not Supported!!
This code is not supported. The Facebook API has since changed. Only provided for open source purposes ... feel free to modify at your own risk.

Download Now

File Type: zip fbconnect-3.0.4.zip (35.4 KB, 212 views)
File Type: zip fbconnect-3.0.5.zip (35.6 KB, 954 views)

Screenshots

File Type: jpg indexpage-logged-in.JPG (30.4 KB, 0 views)
File Type: jpg newpost.JPG (36.0 KB, 0 views)
File Type: jpg indexpage.JPG (50.8 KB, 0 views)
File Type: jpg connectpage.JPG (99.9 KB, 0 views)
File Type: jpg FBConnectClickFlow.jpg (46.7 KB, 0 views)
File Type: jpg FBConnectSession.jpg (44.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
JohorBahru, Taringa! CS, Vibhor

Comments
  #82  
Old 09-23-2011, 03:53 PM
Morrus Morrus is offline
 
Join Date: Jan 2002
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by unp View Post
Put '$fbconnect_button' above <if condition="$show['member']", else it won't show to guests.
Ah, that seems to have done the trick.

The instructions read:

Quote:
Originally Posted by Instructions
Find the first:
<if condition="$show['member']">

Insert After:
<!-- fbconnect -->
$fbconnect_button
<!-- / fbconnect -->
So they may need to be altered slightly.
Reply With Quote
  #83  
Old 09-23-2011, 04:07 PM
Morrus Morrus is offline
 
Join Date: Jan 2002
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quick question - are FB users counted in the registered member count?
Reply With Quote
  #84  
Old 09-23-2011, 04:16 PM
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Location: Park City, Utah, United S
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SocialNetworkBuzz View Post
Yeap - https://apps.facebook.com/vbfourtest/

As you'll see, you get the pop up for app connection permission. But after agreeing, it doesn't log you in and anytime you click the fb connect button again, nothing happens. But if you go to https://socialnetwork.bz/vb4/ the button works fine. So it is only within canvas not working.
In your clientscript/vbulletin_facebook.js file find the vB_Facebook.prototype.do_fbRedirect function block. Replace it with this ...

Code:
vB_Facebook.prototype.do_fbRedirect = function() {
    var A = window.location.href.replace(/#.*/, "");
    var B = (window.location.search.substring(1) ? "&" : "?");
    window.location = A + B + "dofbredirect=1" + window.location.hash
};

The original function was calling window.top.location which will throw the error ...
Code:
Unsafe JavaScript attempt to access frame with URL http://apps.facebook.com/vbfourtest/ from frame with URL https://socialnetwork.bz/vb4/forum.php. Domains, protocols and ports must match.
I have no way to test, so I'm hoping it'll work. Let m know


Edit: I just realized the vbulletin_facebook.js file is obfuscated. Try running with the attached file (make sure to remove the ".txt" in the filename)
Attached Files
File Type: txt vbulletin_facebook.js.txt (6.8 KB, 10 views)
Reply With Quote
  #85  
Old 09-23-2011, 04:18 PM
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Location: Park City, Utah, United S
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Morrus View Post
I didn't modify any of your templates - just followed the instructions exactly.

Viewing the source, there's no reference to fbconnect.png at all.

It shows up perfectly when I'm logged in; everything else seems to be working OK. Just nothing when visiting as a guest. Nothing on register.php, either.



I understand what's supposed to happen. Only.... it's not.

The instructions say to put the button after <if condition="$show['member']">

I'm not an expert, but if that's a conditional of some kind, is it perhaps telling it not to display?

Ooops! My bad. The documentation should say BEFORE the <if condition="$show['member']">

Thanks UNP for pointing this out.
Reply With Quote
  #86  
Old 09-23-2011, 04:23 PM
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Location: Park City, Utah, United S
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taringa! CS View Post
After a couple of hours first time you load a forum's page i'm getting the facebook connect image, after reloading page everything it's fine as it should be.

--

Yesterday i cleaned up cookies, and today after loging in i (using vbulletin login) the facebook connect image never shows up as a connected user
Could it be my poor documentation?

Check this post ...
https://vborg.vbsupport.ru/showpost....0&postcount=84
Reply With Quote
  #87  
Old 09-23-2011, 04:37 PM
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Location: Park City, Utah, United S
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks to everyone for putting up with these errors/bugs and helping test. I'm hoping to get this rock solid very shortly, then I'll be able to start adding more interesting features

PS - I saw Zuckerburg's presentation at F8 on FB timelines and Open Graph's new action types, object types and aggregation features last night. Looks like it'll be acceptable to start posting when users log in/out of vb, what threads they're reading, etc. What other features would you like to see?
Reply With Quote
  #88  
Old 09-23-2011, 04:40 PM
Morrus Morrus is offline
 
Join Date: Jan 2002
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtbikemike View Post

PS - I saw Zuckerburg's presentation at F8 on FB timelines and Open Graph's new action types, object types and aggregation features last night. Looks like it'll be acceptable to start posting when users log in/out of vb, what threads they're reading, etc. What other features would you like to see?
The big one for me would be to take advantage of the new "Lists" functionality on FB so that you can choose who sees your auto-wall posts (so as not to spam, say, my mother with posts about a website she doesn't understand).

Of course, it's easy to log in to Facebook and edit the post in question, but being able to set that permanently would be awesome.
Reply With Quote
  #89  
Old 09-23-2011, 08:29 PM
Morrus Morrus is offline
 
Join Date: Jan 2002
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, we have a couple of major site-stopper bugs.

1) When you use a Quick Reply, the board substitutes the usual Quick Reply text "Please click one of the Quick Reply icons...". The only way to post now is a quick reply followed immediately by an Edit.

2) Frequent occurences of "The message you have entered is too short. Please lengthen your message to at least 3 characters."

Either of these are site-killers; both are pretty devastating.

Also, this from a user:

---- I clicked on the FB connect button, clicked yes on the FB "allow this page access" and then was logged out of EN World and logged in as a different user (nedjer specifically) without inputting a password.

Eeek.
Reply With Quote
  #90  
Old 09-23-2011, 10:26 PM
Morrus Morrus is offline
 
Join Date: Jan 2002
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update - I asked for browsers and versions. The above is happening on IE6, iE8, and FF6 at minimum (probably more). New posts are down to under 10% normal, so it's clearly widespread.

I'm uninstalling for now, for obvious reason (can't afford it!)
Reply With Quote
  #91  
Old 09-23-2011, 10:49 PM
Taringa! CS's Avatar
Taringa! CS Taringa! CS is offline
 
Join Date: May 2009
Location: Argentina
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taringa! CS View Post
After a couple of hours first time you load a forum's page i'm getting the facebook connect image, after reloading page everything it's fine as it should be.

--

Yesterday i cleaned up cookies, and today after loging in i (using vbulletin login) the facebook connect image never shows up as a connected user
Any hint on this mtbikemike ?

Thanks
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:46 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05005 seconds
  • Memory Usage 2,359KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete