Forum is closed

Show a link to go back to facebook

Show a link to go back to facebook

Hi I would like to show a button to users who are login using facebook. That will allow them to click the logo and go to facebook.com

Is there a PHP script that i can use, I want to show this button to ONLY facebook users not to the whole site.

russellharrower
useravatar
Offline
8 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Show a link to go back to facebook

Any one?

russellharrower
useravatar
Offline
8 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Show a link to go back to facebook

We're working on a 'quick' development guide that may help you to do this.  There's no script already made for it, but something like the below should work if you're up for putting it in your site.

Code:

require_once (JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'helpers'.DS.'facebookhelper.php');
$fbClient = JFBConnectFacebookHelper::getFbClient();
if ($fbClient->user != null)
{
   <a href="http://www.facebook.com/">GO TO FACEBOOK</a>
}

This isn't tested, but let us know how it goes and we should be able to help.

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24059 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Show a link to go back to facebook

Works like a charm.
I will design a button for it, and post it on here for every one.

russellharrower
useravatar
Offline
8 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Show a link to go back to facebook

here is a quick facebook image, I just took the long connect to facebook and cut out the connect with part.

russellharrower
useravatar
Offline
8 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11641
Total Polls:
0
Total Posts:
48895
Posts today:
1
User Info
 
Total Users:
47748
Newest User:
SamRodgers4
Members Online:
0
Guests Online:
863

Online: 
There are no members online
Social Stream
SourceCoast Joomla Social Extensions
Friday, 25 May 2018
JFBConnect 8.0 Coming Soon! Stay tuned.
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program