PDA

View Full Version : Facebook issues [SOLVED]


sv1cec
12-04-2013, 01:54 PM
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 1386176387 at 1386176387 ---------------

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:


<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.