I read the README.txt from start to finish.
I also read every other piece of documentation I could find from start to finish :) And I selected the appropriate input format ;) I have also used Facebook Devel.
My issue is that the Anonymous user, not connected version of my Facebook Connect module is displayed on my homepage and some admin pages. The Connected user version is displaying my other content pages and looks lovely.
This immediately made my think Javascript, as I have Views Nivo Slider running on the frontpage and Admin Menu on my admin pages. But when I removed the slider from my frontpage and ensured that none of its .js files were still included, the issue persisted.Then I used Facebook Devel and picked up that DFF is indeed picking up the correct FB user details for all my pages (I compared with the pages where the correct block is displayed), but it's printing the wrong block contents.
I've also tried using the latest XFBML version of the FB login block, as I had some pretty pimped out PHP going for my previous version.
Any ideas?
Comments
Comment #1
Earwig commentedNearly the exact thing is happening to me. Upon an initial use of the 'Connect', the page refreshes and I see the Facebook profile picture in the block, as expected, for just a second, then it continues to load and reverts to the Connect button. I don't yet have enough pages on this new test site to have encountered one where it works properly.
Comment #2
henno.gous commentedYep, that sounds very familiar :)
Comment #3
Earwig commentedIt appears from fb_connect_block() and theme_fb_markup() that both anonymous and connected are rendered, and the javascript reveals the proper div. Going to dig deeper later today.
Comment #4
Earwig commentedFB_JS.showConnectedMarkup, which shows/hides those divs, is being called during a Connect button login, or a logoff, but not for a regular page load. On a regular page load, this condition at line 28 of fb.js is never being met for me:
if (typeof(FB) != 'undefined') {...so it seems to not be loading the JS SDK right, or something.