Osclass forums

Support forums => Plugins => Facebook Connect => Topic started by: ashxos on January 10, 2015, 01:25:37 pm

Title: How to put Facebook Button insted of "Login with Facebook" | Solved
Post by: ashxos on January 10, 2015, 01:25:37 pm
Hi,

I have successfully installed the facebook plugin.

I want to know How to put Facebook Button insted of "Login with Facebook"
Title: Re: How to put Facebook Button insted of "Login with Facebook"
Post by: ashxos on January 10, 2015, 03:05:22 pm
 :)

Got the solution.

Just went through the Index.php file under /oc-content/plugins/facebook

Found that the function "fbc_login_url()" is already defined for what I require.

    function fbc_login_url() {
        return OSCFacebook::newInstance()->loginUrl();
    }


Thank you again.

Here is my code :
<a href="<?php echo fbc_login_url(); ?>">
                  <img src="/oc-content/themes/bender/images/facebooklogin.jpg" alt="Login with Facebook" ></img>
               </a>
Title: Re: How to put Facebook Button insted of "Login with Facebook" | Solved
Post by: Aficionado on January 10, 2015, 05:11:06 pm
Thanks for the follow up. Most people here do not care to share ....

Title: Re: How to put Facebook Button insted of "Login with Facebook" | Solved
Post by: ashxos on January 12, 2015, 12:33:45 pm
Thanks Aficionado,

Sharing knowledge is my passion. I like to document problems and solutions for Others help.

This this is a just Great platform which I found to complete one of my Dream Project.

Thank you for such a great platform.
Title: Re: How to put Facebook Button insted of "Login with Facebook" | Solved
Post by: Zacdaniel on January 31, 2015, 12:10:49 pm
Okay so I already have the link on my login page but please explain a bit on how to do this?

Do I go into the file that I added my link to and just replace it with that code?
I have it in the user-login.php file

My current coding

<style>
#loginfacebook {
    margin-left: 180px;
}

</style>

and this for the current button

<div id="loginfacebook">
                 
                  <button style="
                          background-color: black;
                          background-image: -webkit-linear-gradient(top, #000000,#000000);">
                          <?php fbc_button(); ?>
                  </button>
               </div>
Title: Re: How to put Facebook Button insted of "Login with Facebook" | Solved
Post by: dinocarrozzo on February 09, 2015, 06:35:11 pm
when i activate the plug in ,it show me this error message. may you help me?
Title: Re: How to put Facebook Button insted of "Login with Facebook" | Solved
Post by: dev101 on February 09, 2015, 07:10:50 pm
Answered in another post.
Title: Re: How to put Facebook Button insted of "Login with Facebook" | Solved
Post by: dinocarrozzo on February 09, 2015, 07:32:39 pm
ok, i've activate curl, and the plugin is active . also facebook app key are ok.
can you specify where i have to insert the code for button?
Title: Re: How to put Facebook Button insted of "Login with Facebook" | Solved
Post by: dev101 on February 10, 2015, 02:20:18 am
I never used this plugin, but I assume somewhere in your theme files, header.php probably.