WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Simple Facebook Connect] Connect To Facebook Button Help (7 posts)

  1. tamilhood
    Member
    Posted 4 years ago #

    Hi, I am trying to add a Connect To Facebook button on my login page (I'm using custom login pages and register plus plugins) yet I can't get the button to show. I've used the tutorial below:
    http://wiki.developers.facebook.com/index.php/Connect/Setting_Up_Your_Site

    I was wondering if there is a line in your plugin I could use to show the button anywhere.

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

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

    After activating the base SFC plugin, you can add fb:login-button code to your site anywhere you like and a login button will appear.

  3. tamilhood
    Member
    Posted 4 years ago #

    Thank you I found out how that only works on widgets, posts and pages on wordpress but I'm trying to add this to my custom login page template a php file.

  4. tamilhood
    Member
    Posted 4 years ago #

    Found out what I did wrong it was the same lines I've used at first:

    <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript">
    </script>
    
    <fb:login-button onlogin='window.location="/";'></fb:login-button>
    
    <script type="text/javascript">FB.init("53d596ea8c52cec493d8a1e6ad7ead6e", "http://siteurl.com/xd_receiver.htm");
    </script>

    On the second argument I used "xd_receiver.htm" but the right way was "http://siteurl.com/xd_receiver.htm" :/

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

    No, I don't think you understand. The base SFC plugin, once activated, takes care of the FeatureLoader and that FB.init stuff for you. You don't need to add any of that manually at all. And you definitely don't need the xd_receiver.htm file on your site, that's handled by the plugin internally.

    Install and setup the base SFC plugin. Then just use the fb:login-button code anywhere. In the theme, in a post, in a widget... whatever you like.

    If you have a custom page or theme or what not, then make sure it includes the proper calls to wp_head() and wp_footer() to get the Facebook code inserted into it.

    If you're making a custom login page, then activate the SFC-Login plugin and make sure you page runs the login_form action, like the normal login page does. That will have the login plugin insert the login button as per usual. Also, the Login plugin has other code to make the button actually work. :)

  6. yashmistrey
    Member
    Posted 3 years ago #

    @tamilhood

    can you give me code how to place simple fb login code in

    simple model login window to login / register site

  7. Robertbuijs
    Member
    Posted 3 years ago #

    @Otto , Id like to know the same as yashmistrey.

    I think a lot of people use Simplemodal plugin. Right now, all there is is janrain simplemodal engage plugin. Its got too many bugs to be implemented right now. Any way you could tell us how to make your simple fb and twitter buttons appear up on a simplemodal login pop-up?

    I love your plugin by the way :) good work. Only one thing, if you're going to give all these little parts of your plugin a seperate entry on my wordpress plugins page, shouldnt you allow me to remove any of those i don't use seperately? now if i try to remove those i don't use, it wants me to remove all of them at once. I just like to keep the plugins page a bit clean thats all.

Topic Closed

This topic has been closed to new replies.

About this Topic