Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 12-04-2013, 01:54 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Facebook issues [SOLVED]

I am working on the Facebook platform in vB 4.2.2 and I have one issue, which perhaps, you can help me with.

I have set up an app, I have an app ID and a secret code and I have entered these correctly in my Facebook Options page in AdminCP. However, the FB Connect button, which appears in the header, doesn't do anything. It doesn't ask for an FB log in. Other functions, like for example the Like buttons in threads, do ask me for an FB log in, and they work correctly when I ask to share a thread in FB. I have downloaded the Facebook SDK from a web site (I do not remember the site's name, but it is the correct site, from where a lot of software is distributed) and I have uploaded the three files to /includes/facebook, no improvements. Any help?

Your help will be greatly appreciated.

--------------- Added [DATE]1386176387[/DATE] at [TIME]1386176387[/TIME] ---------------

Never mind, I figured this out. Thanks for looking.
Reply With Quote
  #2  
Old 12-05-2013, 12:49 AM
steve3402000's Avatar
steve3402000 steve3402000 is offline
 
Join Date: Nov 2004
Location: Detoilet
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well hook us up brother !! What did you do?

Steve
Reply With Quote
  #3  
Old 12-05-2013, 06:36 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I started from scratch, checking everything.

First thing I checked my app ID in Facebook, and discovered that I had it set up to match the URL of my site, when I was testing it. That site was not accessible from the internet, without a password. Changed the URL and the FB Connect worked just fine.

It takes some testing and it is not very bug-free. For example, my og:image is 300x300 pixels and some times, when I test it in FB debugger, it still shows me that it is too small. Second, some times in FB debugger, I get some errors for circular errors, that I need to figure out, between http://www.mysite.com/forum.php and http://www.mysite.com/activity.php.

I also wanted to have the smallest (height-wise) buttons, so I changed the Facebook_likebutton template to:

Code:
<vb:if condition="$show['loadfbroot']">
<span id="fb-root"></span>
<script type="text/javascript" src="//connect.facebook.net/{vb:rawphrase facebook_language}/all.js#appId={vb:raw appid}&amp;xfbml=1"></script>
</vb:if>
<fb:like href="{vb:raw href}" font="tahoma" layout="button_count" share="true" show_faces="false" width="260" action="like" colorscheme="light"></fb:like>
Oh yes, one more thing to remember while testing is that you need to clear Facebook cookies from your computer, with every test you do. Otherwise, the stored cookies can play havoc with you. And be a little patient. When you hit the FB Connect button, things do not happen instantly, it takes a second or two before the login window appears (and darn it I am not on a slow machine, I have an iMac Intel Core 2 Duo at 2.66 GHz, with 8GB of RAM).

If you still have an issue, get back to me and I'll try to help you out.
Reply With Quote
2 благодарности(ей) от:
Digital Jedi, tbworld
Reply

Thread Tools
Display Modes

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 03:13 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.03640 seconds
  • Memory Usage 2,176KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (2)post_thanks_box_bit
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete