Unable to Associate User with Facebook (68 posts)

  1. tedmaster
    Posted 2 years ago #

    I have been unable to find the solution to this problem so I am posting it as a bug report here on this forum. If there is a better place to submit this kind of feedback, please enlighten me.

    Problem Description: I am unable to associate my wordpress account with my Facebook account.

    Preconditions: Installation of wordpress on a publicly accessible server with only one user account (the default created when it was installed). A Facebook account created and configured. A Facebook App created, configured (the Debugger in the Facebook plugin doesn't show any errors), and approved.

    Steps to Reproduce:
    1. Log in to Facebook
    2. Log in to your wordpress installation
    3. Click on Facebook->Social Publisher
    4. Click on link "Add a Facebook account to your WordPress account"
    5. Scroll down to bottom to see Facebook Account heading (note that there are two links displayed: "Associate my WordPress account with my Facebook account" and "Associate my WordPress account with my Facebook account and allow new posts to my Facebook Timeline")
    6. Click either of the two links that start "Associate my WordPress..."

    Expected Outcome: (not sure but probably some sort of login screen to authenticate against Facebook or maybe a list of connection options and ultimately the two accounts are associated)

    Actual Outcome:
    1. A small window sometimes displays very briefly
    2. The links are replaced momentarily (1 second, roughly) with the text "Please save your edits by submitting the form"
    3. The above text is then replaced by the original links, as if nothing actually happened

    Wordpress: 3.9.1
    Plug-in: 1.5.5
    PHP: 5.3.10
    Server Software: Apache/2.2.22 (Ubuntu)
    cURL: 7.22.0
    OpenSSL: 1.0.1
    App ID: 624346840992724

    Thoughts and Questions:
    - Instructions on how to debug this plug-in would encourage other developers to help fix it.
    - All I really want to be able to do is publish notes on my timeline whenever I publish a new blog post. I know there are other plug-ins for this, but I'd like to use the "official" plug-in.


    Ted Stresen-Reuter


  2. thorin_ll
    Posted 2 years ago #

    Hi, Ted,

    I'm facing the same issue and i try to associate with a Mac then i add an error messages on FACEBOOK say that i have to require "publish_actions" for my Apps.

    I just complete the form and send it for approval, I think you have to do the same first...

    I will let you know the result when it's done.

    Kind Regards,


  3. tedmaster
    Posted 2 years ago #


    Thanks for the reply. I think I've done that. The application has been approved and all the additional fields required for for Facebook Login (as described here) have been filled in (I am not seeing any errors in the Facebook Debugger).

    Just out of curiosity, how are you "requiring" publish_actions? Where are you seeing these error messages?



  4. thorin_ll
    Posted 2 years ago #

    In the Facebook Apps site:
    Status Review
    Submit apps and add the "publish_action" item on the list complete the text and add the print screen then send for review...

  5. tedmaster
    Posted 2 years ago #

    Hmmm... I had Publish an Article selected as that is what some documentation I read somewhere suggested I do. I'm doing the other one now, though, just in case.


  6. pokr777
    Posted 2 years ago #

    i'm having the same issue. i dont think is the social plugin, since i've done it before on 3.8 WP without problem.
    There is a plugin conflict in the 3.9.1 WP version....
    My opinion, you can wait for a new release (Facebook or WordPress), or try to downgrade WP to 3.8

  7. nickamis
    Posted 2 years ago #

    I also have this exact same problem. I've tried a variety of browsers but nothing works.

  8. tedmaster
    Posted 2 years ago #

    @pokr777 How do you know there is a plug-in conflict? Have you seen a bug report or have some other kind of debugging output that confirms this? If so, any idea which plug-ins are conflicting? Downgrading is not an option for me at this time.

    Everyone: I'm sure the developers would find it extremely helpful if you could follow the steps I've detailed above and and either confirm or contrast your results, including version numbers (wordpress, plug-in, PHP, and maybe even list other plug-ins you have active).

    I would try to debug it myself but I simply do not understand the Facebook side of things (not sure what is supposed to happen and what output I'm supposed to see). In other words, in my case, it's not for a lack of tools but rather a lack of in-depth documentation (Facebook API documentation).



  9. thorin_ll
    Posted 2 years ago #

    Facebook back my authorisation application because they said we already have-it...
    So still back in the issue, i'm also convinced that the error is due to WP version...

  10. carlo.cavaliere
    Posted 2 years ago #

    Hi thorin_II,

    I'm having the same issue. Seems that Facebook changed policy about permissions recently, but an appropriate documentation is not given. Neither good examples are found on Google.

    FB rejected my authorization application with the following explaination:

    The following items were not reviewed due to general issues with your app:
    Notes from our review team
    You do not need to request these permissions because your blog or CMS is integrated with an app that you admin. As an App admin, you can already access these permissions and post to your Timeline or a page you admin. You can provide access to additional users by adding them as developers of your App.

    As you can see, I asked for an authorization to use "publish_actions" to let the FB plugin to post on my FB page timeline.

    No joy. Any idea?

  11. pokr777
    Posted 2 years ago #

    Ted, i'm not an expert, but if this plugin worked for me just fine with an earlier version of WP, i suppose that the conflict is between this plugin and the new 3.9.1 version.
    Just to make sure we are talking about the same thing

    And Carlo, if what you say is true, this is so not good. Means is gonna be even more complicated to use this plugin. Hope we will find soon some tutorials over the web.

  12. pokr777
    Posted 2 years ago #

    Bad news :( I was wrong! I just made a downgrade to 3.8.3 of WP, and the issue is still there...cannot "Add a Facebook account to your WordPress account". There is still a blank spot. And i even deleted the wp-content folder also. And uploaded the default. And the issue goes on :( DAMN

  13. tedmaster
    Posted 2 years ago #

    @pokr777, yes, more or less, this is the same issue. That said, I'm pretty sure that if you resolve a few issues on the Facebook app page you'll see what I see. To do that, click the Debugger link in the Facebook menu of your wordpress installation. You'll see which items you need to resolve.

    However, as we're both experiencing, even if you do resolve those issues, it still doesn't work and as you can see in my case, you may end up with two links, neither of which works.

    Please, developers, point us in the right direction.


  14. pokr777
    Posted 2 years ago #

    If i look at your pic you should be fine. My issue at the moment is (sorry if I repeat) :
    * Click on Facebook plugin : - insert app ID
    - insert app secret
    - Save
    * Click on Social Publisher : - Add a Facebook account...
    - takes me to my profile
    - scroll down, and nothing is there, as you have those 2 blue links, i don't have nothing there
    If i insert the 2 app id and secret from another FB app, that is running without a problem on another website, is still the same.
    Fb didn't upgrade it's plugin , i went on 3.8.3 as i successfully installed the other one; so nothing should change.
    What i will try now is to create a new app, wait for approval, and just after approval i will insert the 2 codes and go on with the installation.
    Thanks for the reply Ted. I will let you know if it will work after i will get the new app approved. Working on it.

  15. pokr777
    Posted 2 years ago #

    This is what i get now
    After i accept it goes in a continuous loop. I dont know, guess i'm gonna try some other app.
    + when you try to integrate the open graph, there are some new versions. So another opinion: is not the WP version, is not the plugin version, is Facebook. And i mean the open graph section.
    I really hope this plugin is made by Facebook.com.
    Release an update!!!!!!!

  16. Jesse Pearson
    Posted 2 years ago #

    I have wasted half a day on trying to get this working, as well.

    I created the app, and I initially got the pop up to link the User to FB, but then it goes nowhere after that. When I go into the debugger on the plugin, I see that the user is not linked.

    I created a test app under my app, and I get the same thing.

    I did go into Open Graph and set up "people can publish an article", as described in #2 in the Open Graph prerequisites within the plugin. Still no go.

    What are you guys using for all of the screenshots they are requesting for user flow?

  17. tedmaster
    Posted 2 years ago #

    @jessepearson I just used screen shots from wordpress (the publishing process), but if I recall, I found the steps on a web site somewhere... Sorry but I can't find the URL.

    Thanks for sharing your experience.

    Remember: version numbers, list of other plug-ins, can all be very helpful to the developers (if they ever read this).


  18. Jesse Pearson
    Posted 2 years ago #

    At this point I am lucky I posted without profanity :)

    I have WP 3.9.1 and FB plugin 1.5.5.

  19. pokr777
    Posted 2 years ago #

    Did you manage to associate your page to wordpress? How did you got passed that?
    *Associate my WordPress account with my Facebook account and allow new posts to my Facebook Timeline*

  20. Jesse Pearson
    Posted 2 years ago #

    On the first try, and only the first try, it will pop up and ask you to verify. After that, it begins to pop up, then the page refreshes.

    You can try it again by going into Roles > Test Users under your app, create a new test user or use the existing one, then go back into WP. Make sure you log out of Facebook before clicking on the link in your WP User Profile, then click either link and it will ask you to log in. You input the test user info, it accepts it, but it doesn't link on the WP side.

  21. tedmaster
    Posted 2 years ago #

    @jessepearson, I am having the exact same experience.

  22. pokr777
    Posted 2 years ago #

    You lost me somewhere :(
    I'll just wait for my app to get approved and try again.
    It's true what u're saying that if u are logged out the pop-up will stay (will not just disappear) and you can log in. But i end up in the same place anyway.

  23. Jesse Pearson
    Posted 2 years ago #

    @pokr777 Sorry :\

    I just went into my FB account, then to Settings > Apps, and my app is there.

    It appears that the Facebook auth system is recognizing when you authorize it to your account, however, there is something broken in the link between FB and WP. Most likely it is something the OG code in the plugin itself.

  24. Jesse Pearson
    Posted 2 years ago #

    I dove into the code, at line 209 of facebook/admin/profile.php, there is this:

    } catch(Exception $e) {}

    I added in an echo and caught the problem:

    $e: 210
    WP_FacebookApiException Object
        [result:protected] => Array
                [error_code] => 12
                [error] => Array
                        [message] => (#12) username is deprecated for versions v2.0 and higher
                        [type] => OAuthException
        [message:protected] => (#12) username is deprecated for versions v2.0 and higher
        [string:Exception:private] =>
        [code:protected] => 12
        [file:protected] => [redacted]/wp-content/plugins/facebook/includes/facebook-php-sdk/class-facebook-wp.php
        [line:protected] => 46
        [trace:Exception:private] => Array

    I truncated because it dumps out the API ID, Secret, etc.

  25. pokr777
    Posted 2 years ago #

    So i should just copy this just after line 209? Or I delete 209 and replace with this?

  26. Jesse Pearson
    Posted 2 years ago #


    I was just posting the error that was previously uncaught (in case the developers were watching). I have managed to get my account to link, but I still cannot post from WP to FB.

  27. pokr777
    Posted 2 years ago #

    My pulse got high :)) tough you got the bug.
    So..I'll just wait.
    You said you have your app listed in FB acc. I have it to: one that is active...witch i made +- a month ago, and the new one that I just send it for approval. And i dont think it will be approved, since i cannot make a timeline print screen because I can't associate FB.

  28. tedmaster
    Posted 2 years ago #

    @jessepearson indeed you seem to have found *a* problem :-). Honestly, if I had the time, I'd be all over this, but I find the Facebook documentation to be either outdated or sparse (few clear and working examples) and I just don't have the time to wade through it... If, however, that changes, I'll post my updates here.


  29. tedmaster
    Posted 2 years ago #

    Ok so, maybe I lied. I can't resist a good puzzle and while perusing the documentation, I found this gem:

    "Note: If the only people who are ever expected to log into your app are the people listed in the Roles section of your app, you do not need to submit for review. For example, if you use the Facebook for WordPress plugin to publish your blog posts to Facebook, you do not need to submit for review to be able to grant the manage_pages or publish_actions permissions as long as the person logging into the app is listed in the Roles section of your app's dashboard"

    I think the bottom line is the current version of this plug-in is written against the previous version of the Facebook API. However, any Facebook application created after about April 1 is prohibited from accessing the Facebook 1.x API.

    So in other words, you may be able to get this to work making a few modifications to the existing code but I'm gonna guess there are some deeper issues that will need to be resolved before the plug-in works full force.

    In fact, I'll bet that the two developers tasked with maintaining this plug-in are actively working on the 2.0 version as I write this, but they are prohibited from talking about it (and would probably benefit from having some beta testers).


  30. tedmaster
    Posted 2 years ago #

    So I just logged in to my Facebook application and see that my request for the publish_actions was DECLINED ROFL.

    I'm hoping it was declined because, as the documentation states, I don't need it but it would be so helpful if Facebook would specify that in their response.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic