vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Facebook issues [SOLVED] (https://vborg.vbsupport.ru/showthread.php?t=305362)

sv1cec 12-04-2013 01:54 PM

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.

steve3402000 12-05-2013 12:49 AM

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

Steve

sv1cec 12-05-2013 06:36 AM

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.


All times are GMT. The time now is 05:20 AM.

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.09538 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete