WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Simple Facebook Connect] Problem with two WP-installs on same domain (14 posts)

  1. RHCdG
    Member
    Posted 4 years ago #

    Hi,
    I got the plugin successfully installed on my personal blog at http://www.cornetsdegroot.com/rhcdg/ but I have another blog in the root of that domain at http://www.cornetsdegroot.com, from where I would like to establish a connection to a Fan Page on FB. So, I figured I must upload the plugin to both plugin folders, which is what I did, however, I had already entered the Fan Page ID in the plugin settings of my personal blog. And now, the buttons on the Post Edit page of the root URL do not show...

    I'm not sure if I'm making myself clear but the idea is to publish posts from the root URL to the FB Fan Page, i.e. not from my personal blog.

    Many thanks for any suggestions!

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    If you want to use your existing application on the root site, just edit the application settings to reflect that.

    Basically, remove the subdirectory from the FB app's settings, here: http://www.facebook.com/developers/apps.php

    Generally, one FB app per WP installation. If you want an FB app to cover multiple-installs, it's more complicated.

  3. RHCdG
    Member
    Posted 4 years ago #

    Thanks for your reply. Can you point me to where exactly I should go on that page?
    Just to reiterate, I would like to be able to:

    - post from my personal blog at ../rhcdg to my Facebook wall, and
    - post from the root site to the Facebook Fan Page.

    If possible, I'd like to keep both away from each other. That is why I thought I'd install the plugin in both WP installations.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    On your App, edit the page settings. It's a link on that page. It says "Edit Settings".

    From there, you probably need to go to the Connect tab, and change the URLs to be the URLs of the root site.

  5. RHCdG
    Member
    Posted 4 years ago #

    I removed the subdirectory at the app's settings like you said, but nothing has changed. I am wondering if it is best to deinstall the plugin, remove the plugin files, and start from scrath. Would that be an idea? Or will that affect the settings (API Key, etc.) that I entered earlier?

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    Removing and reinstalling the plugin won't help you any. Nothing special happens on an installation.

    What is it that isn't working here? I guess I'm not understanding what you're wanting to do, because that's literally all there is to it. You put in the keys, make sure the URLs are right, connect the site to Facebook, and voila.

    What are you actually seeing that you think you should not be seeing?

    Oh, and make sure you clear your cookies too. Old cookies can cause weird results when making changes along these lines.

  7. RHCdG
    Member
    Posted 4 years ago #

    Here is my problem: In the Edit Posts section of the WP-installation in the subdirectory, both buttons appear, i.e., the Publish to Facebook Fan Page, and Publish to Your Facebook Profile buttons. In the Edit Posts section of the WP-installation in the root directory, the above mentioned buttons do not appear. Instead, the following message is displayed:

    "If you can see this, then there is some form of problem showing you the Facebook publishing buttons. This may be caused by a plugin conflict or some form of bad javascript on this page. Try reloading or disabling other plugins to find the source of the problem."

    I would like to be able to publish to my Facebook Profile from the subdirectory, and to publish to the Facebook Fan Page from the root directory.

    I appreciate your help!

  8. RHCdG
    Member
    Posted 4 years ago #

    I guess this is resolved. I still don't see the buttons in the root directory, but it works like I want it to.
    Thanks again for your help, and for the plugin!

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    The message means exactly what it says. If the buttons don't appear, then you have some kind of javascript problem or a configuration problem. Perhaps a problem with another plugin or something.

    Look in the browser Error Console on the page where you see that message. What is the error?

    Basically, there is javascript code inserted onto the page to make the buttons appear. So if they don't show, then there's an error of some sort.

  10. RHCdG
    Member
    Posted 4 years ago #

    The Error Console says, "FB not defined" and when I click on it, it highlights the following in the source code:

    FB.ensureInit(function(){

    Does that mean anything to you? Or should I supply the rest of the code as well?

  11. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    FB not defined usually means that a theme is missing the wp_head call or something, but in this case you're in the admin area, so that makes no sense.

    Look at the top of the source code of the page with the error. Do you see the FeatureLoader.js.php script being called anywhere? That is where FB gets defined. If it's not showing up, then you have some form of serious problem that I cannot explain.

  12. JenRar
    Member
    Posted 4 years ago #

    I installed the plugin. The button to Find Me on Facebook works great. But the post to Facebook is giving me this error: If you can see this, then there is some form of problem showing you the Facebook publishing buttons. This may be caused by a plugin conflict or some form of bad javascript on this page. Try reloading or disabling other plugins to find the source of the problem.

    I tried disabling all the other plugins, and it still didn't work. I have multiple connect.facebook.com errors:

    Expected declaration but found '*'. Skipped to next declaration.
    Error in parsing value for 'filter'. Declaration dropped.
    Unknown proptery '-moz-opacity'. Declaration dropped.
    Unknown property 'zoom'. Declaration dropped.
    Expected color but found 'invert'. Error in parsing value for 'outline-color'. Declaration dropped.

    There are a couple more, too. They all have links like: http://static.ak.connect.facebook.com/connect.php/en_US/css/bookmark-button-css/connect-button-css/share-button-css/FB.Connect-css/connect-css

    Please help! :( TIA!

  13. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    Those are CSS issues, they won't prevent the thing from working.

    Most common cause of this is having set up your Facebook Application incorrectly. Follow this guide: http://ottopress.com/2010/how-to-setup-your-facebook-connect-application/

  14. JenRar
    Member
    Posted 4 years ago #

    Oh! That helped a bunch. Thank you very much! :)

Topic Closed

This topic has been closed to new replies.

About this Topic