Advertisement:

Author Topic: How to put Facebook Button insted of "Login with Facebook" | Solved  (Read 1896 times)

ashxos

  • Newbie
  • *
  • Posts: 4
Hi,

I have successfully installed the facebook plugin.

I want to know How to put Facebook Button insted of "Login with Facebook"
« Last Edit: January 10, 2015, 03:06:31 pm by ashxos »

ashxos

  • Newbie
  • *
  • Posts: 4
Re: How to put Facebook Button insted of "Login with Facebook"
« Reply #1 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>
« Last Edit: January 12, 2015, 12:31:28 pm by ashxos »

Aficionado

  • Guest
Re: How to put Facebook Button insted of "Login with Facebook" | Solved
« Reply #2 on: January 10, 2015, 05:11:06 pm »
Thanks for the follow up. Most people here do not care to share ....


ashxos

  • Newbie
  • *
  • Posts: 4
Re: How to put Facebook Button insted of "Login with Facebook" | Solved
« Reply #3 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.

Zacdaniel

  • Full Member
  • ***
  • Posts: 115
  • Why, Yes I'm a white african haha...
Re: How to put Facebook Button insted of "Login with Facebook" | Solved
« Reply #4 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>

dinocarrozzo

  • Newbie
  • *
  • Posts: 8
Re: How to put Facebook Button insted of "Login with Facebook" | Solved
« Reply #5 on: February 09, 2015, 06:35:11 pm »
when i activate the plug in ,it show me this error message. may you help me?

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: How to put Facebook Button insted of "Login with Facebook" | Solved
« Reply #6 on: February 09, 2015, 07:10:50 pm »
Answered in another post.

dinocarrozzo

  • Newbie
  • *
  • Posts: 8
Re: How to put Facebook Button insted of "Login with Facebook" | Solved
« Reply #7 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?

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: How to put Facebook Button insted of "Login with Facebook" | Solved
« Reply #8 on: February 10, 2015, 02:20:18 am »
I never used this plugin, but I assume somewhere in your theme files, header.php probably.