The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Simple Facebook Connect
Grant SFC Permissions doesn't get tokens (multisite wordpress) (5 posts)

  1. wsitch
    Posted 3 years ago #

    Installed SFC, created the facebook application, but clicking "Grant SFC Permissions" button doesn't work.

    Pressing the button opens another firefox window, but it closes just as quickly. The wordpress config page then shows the URL http://sara.sitch.org/wp-admin/options.php, but displayed on the page is the text "Page not found".

    If I refresh I get the config page. If I reload the SFC options page, it shows the tokens haven't been saved. Saving or clicking doesn't help.




  2. wsitch
    Posted 3 years ago #

    I found what could be a problem in sfc-base.php, line 186, where the post form redirects to, which is set to "options.php". This causes the "Page not found" to be shown.

    Adjusting this to "/wp-admin/options-general.php?page=sfc" eliminates the "Page not found" issue when I click the "Grant SFC Permissions" button, but the tokens still aren't being captured.

    To be more clear about the small window that pops up: I've already given permissions for my facebook account to be linked to my facebook app, so it's not going through the process of asking me if I'm sure I want to grant permission (and to whom I want the postings to be shared with).

    I think there's an issue with the token being saved, perhaps based on the multisite nature of my install.

    I'd love some help. I'm available to troubleshoot directly.


  3. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 3 years ago #

    No, it should be options.php, not options-general.php. The code is correct there.

    If you get a page not found, then you have some other underlying problem, because options.php does exist and is the correct place for it to go.

  4. wsitch
    Posted 3 years ago #

    Hi Otto,

    Yes, you're right, options.php exists, but something strange is happening:

    When I click the "Grant SFC Permissions" button a second browser window opens and asks me for permission to connect to the facebook account. When I click ok that window closes. The main window then displays the blog's "page not found" page, while the URL has a legitimate options.php page address in it.

    I assume that the URL being passed back from facebook (perhaps the link containing the token) is somehow mangled. I'm not sure how to troubleshoot this, I don't have easy access to my ISPs logfile.


  5. okebaja
    Posted 3 years ago #

    When I press the "Grant SFC Permissions" button I get an error message after logging in.

    This is the message in Dutch:

    "Er is mogelijk een fout opgetreden tijdens het aanmelden. Je kunt dit venster sluiten en terugkeren naar de toepassing. Mogelijk word je gevraagd om opnieuw aan te melden. Dit is te wijten aan een fout in de toepassing.."

    Which translates to:
    There was an error during logon. You can can close this window and return to the application. You may be asked to login again. This is due to a problem in the application..

    Does this help in resolving this problem?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic