Osclass forums
Support forums => Plugins => Facebook Connect => Topic started 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"
-
:)
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>
-
Thanks for the follow up. Most people here do not care to share ....
-
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.
-
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>
-
when i activate the plug in ,it show me this error message. may you help me?
-
Answered in another post.
-
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?
-
I never used this plugin, but I assume somewhere in your theme files, header.php probably.