WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
SFC 1.0 and Shareaholic - won't work :( (15 posts)

  1. mmozart
    Member
    Posted 2 years ago #

    When I try to login to post a comment, i got message
    ---
    Invalid Argument
    Given URL is not allowed by the Application configuration.
    ---

    When I fill username and pass and proceed i got following message

    ---
    An error occurred with Shareaholic (D). Please try again later.
    ---

    Obvious, SFC and Shareaholic won't work together. Any suggestion?

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

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    You used the wrong URL when creating your Facebook Application. Go back to https://developers.facebook.com/apps and edit your application to fix the incorrect URL.

  3. mmozart
    Member
    Posted 2 years ago #

    I have used correct url. I click on Login button in the comments area but it notify me about Shareaholic. I have installed Shareaholic plugin.

  4. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    If it tells you "Given URL is not allowed by the Application configuration." then that is Facebook telling you that you did *not* use the correct URL. Using the wrong URL is the only way you can get that message.

  5. mmozart
    Member
    Posted 2 years ago #

    OK. You can try by yourself at http://www.eakademik.com. It looks like when I click on Login button for comments it invokes login via Shareaholic app which is another app at facebook and it do not use my application.

    Btw, I must admit, great work with this plugin!

  6. mmozart
    Member
    Posted 2 years ago #

    I did one simple test: disabled Shareaholic plugin and SFC then works just fine. Its problem in interference those two plugins.

  7. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    If Shareaholic is adding Facebook Javascript code to the page, then yes, it will interfere. Use one or the other, not both.

  8. sunriseweb
    Member
    Posted 2 years ago #

    I had the same problem. Good news is that SFC and AddThis seem to work well together.

    PS - Otto you rock - thanks for SFC!!!

  9. René
    Member
    Posted 2 years ago #

    Is it possible to fix the compatibility issue with shareaholic?
    I use shareaholic for my in post share buttons and SFC for comment authorization only.

  10. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    René: No, it is not possible to fix said issue. The older Facebook Share button is incompatible with all newer Facebook code. There is no way to fix this. Don't use the old Share code.

  11. René
    Member
    Posted 2 years ago #

    OK, thanks!
    Seems like either Shareaholic will have to update their plugin to use new code or I'll have to choose a new Share plugin altogether, which will be compatible with yours.

    Cheers!

  12. sunriseweb
    Member
    Posted 2 years ago #

    Doh - problem with AddThis when sharing comment to Facebook with SFC.

    Messages are:

    Warning: Cannot modify header information - headers already sent by (output started at /home/martest/public_html/wp-content/plugins/addthis/addthis_social_widget.php:1385) in /home/martest/public_html/wp-comments-post.php on line 95
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/martest/public_html/wp-content/plugins/addthis/addthis_social_widget.php:1385) in /home/martest/public_html/wp-comments-post.php on line 96
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/martest/public_html/wp-content/plugins/addthis/addthis_social_widget.php:1385) in /home/martest/public_html/wp-comments-post.php on line 97
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/martest/public_html/wp-content/plugins/addthis/addthis_social_widget.php:1385) in /home/martest/public_html/wp-includes/pluggable.php on line 866
  13. sunriseweb
    Member
    Posted 2 years ago #

    It looks like SFC is trying to echo javascript to the page afer the AddThis plugin has already done so.

    I replaced /wp-content/plugins/addthis/addthis_social_widget.php line 1385

    echo $script;

    with

    return false;

    and this stopped the error messages. Of course the AddThis sharing buttons no longer appear.

  14. sunriseweb
    Member
    Posted 2 years ago #

    Finally just used CSS to hide checkbox that allows publish of comment to FB. Love to offer this functionality if anyone has a better solution.

    #sfc_comm_send { display: none; }

  15. sunriseweb
    Member
    Posted 2 years ago #

    I really want the publish comment to FB functionality of SFC so I decided to inactivate AddThis plugin and put AddThis in my theme manually. This also allowed me to the Pinterest share code which is not in the AddThis plugin code.

    To get the Pinterest image link to share I use the "Get The Image" plugin if it is active.

    Since I wanted it after the content of a post I added the following to my functions.php file. Using "the_content" filter avoids the echo / headers problem.

    See code here: http://pastebin.com/3phBE8g7

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic