Register Members List Search Today's Posts Mark Forums Read

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

vB Version: 3.8.7 Rating: (3 votes - 4.67 average) Installs: 54
Released: 13 Sep 2011 Last Update: 30 Sep 2011 Downloads: 911
Not Supported DB Changes Uses Plugins Template Edits Additional Files Re-usable Code Translations External Content Is in Beta Stage  

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

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	indexpage-logged-in.JPG
Views:	1352
Size:	30.4 KB
ID:	132898   Click image for larger version

Name:	newpost.JPG
Views:	1182
Size:	36.0 KB
ID:	132899   Click image for larger version

Name:	indexpage.JPG
Views:	1170
Size:	50.8 KB
ID:	132901   Click image for larger version

Name:	connectpage.JPG
Views:	1064
Size:	99.9 KB
ID:	133165  

Click image for larger version

Name:	FBConnectClickFlow.jpg
Views:	813
Size:	46.7 KB
ID:	133322   Click image for larger version

Name:	FBConnectSession.jpg
Views:	344
Size:	44.6 KB
ID:	133323  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #106  
Old 26 Sep 2011, 15:48
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
ooops. forgot to move some code into the plugin. I re-uploaded 3.0.4 with the fix below.


Add to to top of parse_templates hook ...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #107  
Old 26 Sep 2011, 15:54
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Originally Posted by unp View Post
3.0.4 Not working for me, Firebug showing this error message:
Most likely caused by a null session var. Check my previous message on how to fix.

If the fix doesn't work, let me know what version of FF you're using.
Reply With Quote
  #108  
Old 26 Sep 2011, 15:55
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Originally Posted by JohorBahru View Post
hi, does this work or any changes required after f8?
Should work fine. No changes needed after F8, but a lot of interesting possibilities.

See forums.carreview.com for a live demo.
Reply With Quote
  #109  
Old 26 Sep 2011, 15:58
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Originally Posted by Hellmaster View Post
It's 5.2.17

Thanks for reply, hope you can help me!
I developed it using 5.3, but the latest release of the plugin should run okay on 5.2.
Reply With Quote
  #110  
Old 26 Sep 2011, 16:13
Taringa! CS's Avatar
Taringa! CS Taringa! CS is offline
 
Join Date: May 2009
Real name: Matías
After upgrading to 3.0.4 i've got some problems like

*) I'm logged in and i can login using facebook
*) I'm logged out and after trying to login using fb button wrong username/password error it's shown
Reply With Quote
  #111  
Old 26 Sep 2011, 19:03
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Originally Posted by Taringa! CS View Post
After upgrading to 3.0.4 i've got some problems like
*) I'm logged in and i can login using facebook
If you close the browser after logging in with FB connect, when you reopen it, it won't be connected anymore. I'm saving the connect status in the vb session object, but it looks like the vb session object needs to know about plugin variables. I'll work on a fix for this.


Originally Posted by Taringa! CS View Post
After upgrading to 3.0.4 i've got some problems like

*) I'm logged out and after trying to login using fb button wrong username/password error it's shown
The only way you can get this error is if you go to fblogin.php and the code can't get your FB User ID (either because the FB cookie wasn't set or you typed that url in directly).
Reply With Quote
  #112  
Old 26 Sep 2011, 19:24
Taringa! CS's Avatar
Taringa! CS Taringa! CS is offline
 
Join Date: May 2009
Real name: Matías
Originally Posted by mtbikemike View Post
If you close the browser after logging in with FB connect, when you reopen it, it won't be connected anymore. I'm saving the connect status in the vb session object, but it looks like the vb session object needs to know about plugin variables. I'll work on a fix for this.
Ok, waiting for the fix because i've already connected my facebook to my vb account and on forums i can't see that conection

Originally Posted by mtbikemike View Post
The only way you can get this error is if you go to fblogin.php and the code can't get your FB User ID (either because the FB cookie wasn't set or you typed that url in directly).
Even i'm logged in or out, i'm getting this error when clicking on facebook button!

Last edited by Taringa! CS; 26 Sep 2011 at 21:13.
Reply With Quote
  #113  
Old 26 Sep 2011, 20:08
Morrus Morrus is offline
 
Join Date: Jan 2002
OK, just installed the latest version.

I haven't had chance to test it fully yet, but there's some odd stuff going on with tables or something in the navbar which didn't happen in the 3.02 version. The button seems to be contained to the top half of a table cell or something. Screenshot attached.

Pressing the button simply takes me to the "Thank you for logging in, Morrus" interrupt screen, and then takes me back to the forum index with no effect. No Facebook window popup or anything.

[Edit - OK, it must simply remember that I connected my FB account when 3.02 was running, because now my FB avatar is there].

It no worky yet. Sorry. Though maybe the second issue is a non-issue.
Attached Images
File Type: jpg screen.jpg (39.8 KB, 19 views)
__________________
www.enworld.org

Last edited by Morrus; 26 Sep 2011 at 20:16.
Reply With Quote
  #114  
Old 26 Sep 2011, 23:21
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Originally Posted by Morrus View Post
OK, just installed the latest version.

I haven't had chance to test it fully yet, but there's some odd stuff going on with tables or something in the navbar which didn't happen in the 3.02 version. The button seems to be contained to the top half of a table cell or something. Screenshot attached.

Pressing the button simply takes me to the "Thank you for logging in, Morrus" interrupt screen, and then takes me back to the forum index with no effect. No Facebook window popup or anything.

[Edit - OK, it must simply remember that I connected my FB account when 3.02 was running, because now my FB avatar is there].

It no worky yet. Sorry. Though maybe the second issue is a non-issue.

RE navbar: I had to switch over to checking user's online status with javascript. Because FB doesn't destroy their cookie on logout, a race condition occurs where if the user logged out from facebook, they would still appear logged in on FB within vb and would get a FB error if they tried to post a thread. So there's a bunch of new logic in the fbconnect_button and fbconnect_init templates. You probably customized fbconnect_button, right?

RE second item: That's how it should work, you probably already linked your account to FB.
Reply With Quote
  #115  
Old 26 Sep 2011, 23:57
Morrus Morrus is offline
 
Join Date: Jan 2002
Originally Posted by mtbikemike View Post
RE navbar: I had to switch over to checking user's online status with javascript. Because FB doesn't destroy their cookie on logout, a race condition occurs where if the user logged out from facebook, they would still appear logged in on FB within vb and would get a FB error if they tried to post a thread. So there's a bunch of new logic in the fbconnect_button and fbconnect_init templates. You probably customized fbconnect_button, right?
Haven't touched it.

The issue isn't anything to do with the functionality, it's simply the display - the button's positioning looks wonky, different to how it looked in the 3.02 version. I haven't dared to touch anything for fear of breaking it.
__________________
www.enworld.org
Reply With Quote
  #116  
Old 27 Sep 2011, 01:37
Taringa! CS's Avatar
Taringa! CS Taringa! CS is offline
 
Join Date: May 2009
Real name: Matías
mtbikemike any hints on my case? thanks!
Reply With Quote
  #117  
Old 27 Sep 2011, 13:40
jlew24asu jlew24asu is offline
 
Join Date: Nov 2006
I'm running 3.8.4, is this safe to install yet?

silk's mod was a disaster and really messed up countless boards. I'd realyl love to install this but would love confirmation that it's working.

thank you to the coder for giving it another try.
Reply With Quote
  #118  
Old 27 Sep 2011, 14:00
Morrus Morrus is offline
 
Join Date: Jan 2002
I tried uninstalling at reinstalling, but when attempting to reinstall I get the following error:

XML Error: Processing Instruction not finished at Line 151
__________________
www.enworld.org
Reply With Quote
  #119  
Old 27 Sep 2011, 18:20
mtbikemike mtbikemike is offline
 
Join Date: Nov 2010
Originally Posted by jlew24asu View Post
I'm running 3.8.4, is this safe to install yet?

silk's mod was a disaster and really messed up countless boards. I'd realyl love to install this but would love confirmation that it's working.

thank you to the coder for giving it another try.
Yeah, this is turning into a head ache. Thought I tested it pretty thoroughly, but there are some non-normal use cases and unexpected browser dependencies. Add to that two sets of sessions/cookies that make debugging difficult.

I'm going to mark this as in beta and continue working on it until it gets rock solid.

For those of you who installed, thank you for helping out. I recommend uninstalling and waiting a bit until I get this all straightened out. I'm not giving up yet!!
Reply With Quote
  #120  
Old 27 Sep 2011, 19:06
Taringa! CS's Avatar
Taringa! CS Taringa! CS is offline
 
Join Date: May 2009
Real name: Matías
Great news mike!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 21:20.

Layout Options | Width: Wide Color: