vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - Facebook Connect - Update for Facebook PHP SDK (v.3.0.0) (https://vborg.vbsupport.ru/showthread.php?t=270219)

mtbikemike 09-12-2011 10:00 PM

Facebook Connect - Update for Facebook PHP SDK (v.3.0.0)
 
1 Attachment(s)
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.

Max Taxable 09-13-2011 10:09 PM

No files uploaded yet?

mtbikemike 09-13-2011 10:16 PM

Was finishing up the documentation. Check now ...

Max Taxable 09-13-2011 10:38 PM

I never can get past the app creation on FB part, FB continually says my domain isn't a valid domain.

mtbikemike 09-14-2011 12:36 AM

hrmmm ... have you tried putting "http://" before your domain name? Or maybe removing it if you have "http://". Or maybe you have some sort of international domain? Or maybe it's being served by a questionable host?

So many variables. Best to take this up with FB.

Max Taxable 09-14-2011 01:18 AM

Quote:

Originally Posted by mtbikemike (Post 2245625)
hrmmm ... have you tried putting "http://" before your domain name? Or maybe removing it if you have "http://". Or maybe you have some sort of international domain? Or maybe it's being served by a questionable host?

So many variables. Best to take this up with FB.

It's none of that.

It may have to do with cloud flare.

dartho 09-14-2011 05:22 AM

Went through without a hitch for me.

There seems to be an anomaly in the display of the facebook icon though. It seems if I am logged onto facebook, and logged into VB with a standard user account, I get icons linking to my facebook account in VB?

I just commented out this bit in the fbconnect_button template

Edit: This also affects the "Publish to Facebook" options...

mtbikemike 09-14-2011 06:22 AM

Quote:

Originally Posted by dartho (Post 2245709)
Went through without a hitch for me.

There seems to be an anomaly in the display of the facebook icon though. It seems if I am logged onto facebook, and logged into VB with a standard user account, I get icons linking to my facebook account in VB?

I just commented out this bit in the fbconnect_button template

Edit: This also affects the "Publish to Facebook" options...

Not sure I understand this. Yes, the icon/avatar at the top near your user name will link to your facebook account. Just gives the user a fair warning that they are connected to facebook.

Glad it installed okay for you. Cheers!

dartho 09-14-2011 07:11 AM

I think visitors to my site might think I am spying on them if they see their facebook icon on mysite, and yet they have never given my site their facebook credentials. Would possibly result in less registrations and/or turn visitors away?

c0der 09-14-2011 04:20 PM

thx for that

need same edit and same

but nice try

valdet 09-15-2011 05:19 PM

Has anyone tested this on versions prior to vB 3.8 ?

unp 09-15-2011 06:04 PM

Not working for me, after entering a 'desired user name' and clicking resister I get a blank page.

url: www.cartalk.in

Alecsmith 09-16-2011 05:23 AM

Not working i am testing on VB 3.8.7 :(

I have forum install in domainname.com/forums/ :( even FB small logo not visible at navbar

mtbikemike 09-16-2011 12:43 PM

Quote:

Originally Posted by unp (Post 2246436)
Not working for me, after entering a 'desired user name' and clicking resister I get a blank page.

url: www.cartalk.in

Go to Admin CP -> Settings -> FB Connect -> Print FB Error Messages
turn this on and see if you're getting any FB errors.

A blank page normally means that a PHP error occured, but you have error reporting turned off in your php.ini. Can you check your php error logs?

mtbikemike 09-16-2011 12:52 PM

Quote:

Originally Posted by Alecsmith (Post 2246624)
Not working i am testing on VB 3.8.7 :(

I have forum install in domainname.com/forums/ :( even FB small logo not visible at navbar

Ah, it's just a image reference problem. The forums I'm working on need an absolute path to work correctly with vbSEO.

Go to the style manager and update the fbconnect_button template. Change any reference from "/images/" to "images/" ... there should be three of them.

I'll make a note to update this in future releases.

unp 09-16-2011 03:19 PM

Quote:

Originally Posted by mtbikemike (Post 2246727)
Go to Admin CP -> Settings -> FB Connect -> Print FB Error Messages
turn this on and see if you're getting any FB errors.

A blank page normally means that a PHP error occured, but you have error reporting turned off in your php.ini. Can you check your php error logs?

This is the error I am getting, I have tried re-uploading all files.

Quote:

Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/ct/public_html/includes/functions_fbconnect.php on line 72

mtbikemike 09-17-2011 01:35 PM

Quote:

Originally Posted by unp (Post 2246810)
This is the error I am getting, I have tried re-uploading all files.

Ah, that line is using an anonymous function which is a feature added in 5.3. I thought array_map would be handled because it was added in php 4.0.6. Didn't realize about the anonymous functions though.

I'll add it to my fix list for the next release. To get it working in the meantime you could turn off "Import User Friends From Facebook" in the FB Connect Settings.

unp 09-17-2011 01:47 PM

Still getting the error after turning off "Import User Friends From Facebook"

c0der 09-17-2011 05:28 PM

thx
i will try it

Alecsmith 09-17-2011 05:44 PM

Quote:

Originally Posted by mtbikemike (Post 2246730)
Ah, it's just a image reference problem. The forums I'm working on need an absolute path to work correctly with vbSEO.

Go to the style manager and update the fbconnect_button template. Change any reference from "/images/" to "images/" ... there should be three of them.

I'll make a note to update this in future releases.

Still no luck by default code i want to add in newreply, newthread & showthreads don't have backslash before images folder name but i tried to add backslash but didn't work

Quote:

<if condition="$vbulletin->userinfo['fbuid'] > 0 and $vboptions['fbconnect_enablefeeds']">
<br/>
<label id="lb_fb_posttofeed" for="cb_fb_posttofeed">
<img src="images/facebook/fblogo_sm.gif" alt="$vbphrase[fbconnect_post_thread_to_wall]" title="$vbphrase[fbconnect_post_thread_to_wall]" />
$vbphrase[fbconnect_post_thread_to_wall]
<input type="checkbox" tabindex="1" id="cb_fb_posttofeed" value="1" checked="checked" name="cb_fb_posttofeed" />
</label>
</if>
Btw i am using Vbseo on this forum with VB 3.8.7

Looking forward for new fixed release.

c0der 09-18-2011 02:14 AM

not work after test

Taringa! CS 09-18-2011 01:25 PM

Is this mod working?

Hellmaster 09-18-2011 08:02 PM

Not working on 3.8.4 :-(

mtbikemike 09-18-2011 09:27 PM

Quote:

Originally Posted by Alecsmith (Post 2247274)
Still no luck by default code i want to add in newreply, newthread & showthreads don't have backslash before images folder name but i tried to add backslash but didn't work



Btw i am using Vbseo on this forum with VB 3.8.7

Looking forward for new fixed release.

You could ...
1) try using absolute paths to the images. E.g., domainname.com/forums/images/facebook/
2) try moving the images included in the zip into the images/buttons folder and update the paths in your templates. vbSEO seems to skip over URL rewrites for some paths.
3) wait a week or two. A couple sites I'm consulting for have vbSEO installed and want the FB connect installed too. I'll be able to debug the problem then.

mtbikemike 09-19-2011 12:18 AM

Latest release should fix all the problems above except the image reference problem with vbSEO.

Let me know how it goes.

Thanks for all the feedback.

SocialNetworkBuzz 09-19-2011 08:07 AM

Where do you change your wording for "just joined the Forums." that posts to a wall when joined? Searched phrases but not there.

SocialNetworkBuzz 09-19-2011 09:25 AM

Would like to see a way to pull their FB account name too so it can be forced as username for seamless login like vB4 and XenForo does.

Very positive side... Works within canvas http://apps.facebook.com/fb-forums/ vB 4.1 the connect button errors if your within canvas iframe. So great job with that.

SocialNetworkBuzz 09-19-2011 10:55 AM

Some members trying to create an account are receiving the error.. This is happening at random and only via apps canvas.

Error getting your Facebook user account: An active access token must be used to query information about the current user.. Click back and try again.

mtbikemike 09-19-2011 01:12 PM

Quote:

Originally Posted by Stabatha (Post 2247776)
Where do you change your wording for "just joined the Forums." that posts to a wall when joined? Searched phrases but not there.

Languages and Phrases -> Phrase Type -> select FB Connect in the drop down

it's the join_message

mtbikemike 09-19-2011 01:24 PM

Quote:

Originally Posted by Stabatha (Post 2247808)
Some members trying to create an account are receiving the error.. This is happening at random and only via apps canvas.

Error getting your Facebook user account: An active access token must be used to query information about the current user.. Click back and try again.

Could be caused by the double declaration of the all.js. Maybe try removing this from your HTML code ...

<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>FB.Canvas.setAutoResize();</script>


Then add the FB.Canvas.setAutoResize(); after the FB.init call in the FB Connect fbconnect_init template ...


Code:

    window.fbAsyncInit = function() {
        FB.init({
            appId: '$vboptions[fbconnect_apikey]',
            status: true,
            cookie: true,
            xfbml: true, 
            oauth : true
        });
        FB.Canvas.setAutoResize();
    };


mtbikemike 09-19-2011 01:30 PM

Quote:

Originally Posted by Stabatha (Post 2247784)
Would like to see a way to pull their FB account name too so it can be forced as username for seamless login like vB4 and XenForo does.

Would take quite a bit of reworking to skip the "Please enter your desired user name ... " step. If there are a bunch more requests for this, I'll consider it. Or back it with some $$ and I'll code it up :p.

SocialNetworkBuzz 09-19-2011 01:35 PM

Ok thanks will do! Also will this still work as of Oct 1st with the new changes coming for auth 2.0 with requiring SSL for auth?

SocialNetworkBuzz 09-19-2011 01:37 PM

Any chance to fix vB4.1 too? So the connect button functions within canvas iframe?

Artes_Marciales 09-19-2011 03:59 PM

How can a user logging on facebook if want to change the password to enter the normal way? :confused:

mtbikemike 09-19-2011 09:38 PM

Quote:

Originally Posted by Stabatha (Post 2247861)
Ok thanks will do! Also will this still work as of Oct 1st with the new changes coming for auth 2.0 with requiring SSL for auth?

Yep, it'll still work according to this page...

Quote:

By October 1, 2011:
  • all Website and Canvas apps must exclusively support OAuth 2.0 (draft 20) (check)
  • all Canvas and Page Tab Apps must use the signed_request parameter (N/A)
  • an SSL Certificate is required for all Canvas and Page Tab apps (not in Sandbox mode and not FBML) (N/A)
  • old, previous versions of our SDKs will stop working, including the old JavaScript SDK (FeatureLoader.js), old iOS SDK (facebook-iphone-sdk) (check)


mtbikemike 09-19-2011 09:39 PM

Quote:

Originally Posted by Stabatha (Post 2247862)
Any chance to fix vB4.1 too? So the connect button functions within canvas iframe?

That's vb.com's domain, isn't it? :rolleyes:

mtbikemike 09-19-2011 09:42 PM

Quote:

Originally Posted by Artes_Marciales (Post 2247927)
How can a user logging on facebook if want to change the password to enter the normal way? :confused:

change which password? VB or FB?

Taringa! CS 09-20-2011 12:34 AM

I've got a problem with the register button.

The facebook popup only works on register.php or login.php... not on forumhome

Any ideas?

SocialNetworkBuzz 09-20-2011 02:43 AM

Quote:

Originally Posted by mtbikemike (Post 2248046)
That's vb.com's domain, isn't it? :rolleyes:

Support won't fix it due to it being considered "3rd party modding" since it is using facebook's iframe. vB 4.1.6 connect works fine if you go direct to your domain.. But usings apps.facebook so you get the canvas, it doesn't. Clicking the connect with facebook button, it does nothing.

Artes_Marciales 09-20-2011 09:43 AM

Quote:

Originally Posted by mtbikemike (Post 2248048)
change which password? VB or FB?

VB.
I fear that my users via facebook stay one day without access to the forum.
I think it should include more data as a normal recording not just a nick name.


All times are GMT. The time now is 07:14 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.01713 seconds
  • Memory Usage 1,833KB
  • 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
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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