Get started with PHP-Fusion

Start a New Thread

Users Participated

  • Craig
    Post made: 1
  • Ankur
    Post made: 1
  • BlackDragon
    Post made: 1

  1. PHP-Fusion Support Forums
  2. General Addon and Modification Support
  3. Code Snippet and functions

Some Nice Snippets from Facebook

Post your code snippets here

2 Replies 2,740 Views Last Updated on 4 years ago

Ankur


Admin

#1

Posted 4 years ago

Hello Guyz,

I was just informed by one of my Friend L0nelyCowBoy about the updated interface of the Facebook Plugins. So I just tried some of them and want to share it with you :

I have just tested three plugins and want response if it also good for you.

Just Add it as a Lower or Upper Center Panel and try :

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]openside("Facebook Recent Activity");

$link = urlencode($settings['siteurl']);
$curlink = 'http://';
$curlink .= $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$curlink = urlencode($curlink);

echo "<center>";

// This Code is for Like. Remove if not wanted.
echo "<iframe src='http://www.facebook.com/plugins/like.php?href=".$curlink."&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light&amp;height=80' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:450px; height:80px;' allowTransparency='true'></iframe><br />";

// This Code is for Activity. Remove if not wanted.
echo "<iframe src='http://www.facebook.com/plugins/activity.php?site=".$link."&amp;width=300&amp;height=300&amp;header=true&amp;colorscheme=dark&amp;font=tahoma&amp;recommendations=true' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:300px; height:300px;' allowTransparency='true'></iframe>";

// This Code is for Recommendations. Remove if not wanted.
echo "<iframe src='http://www.facebook.com/plugins/recommendations.php?site=".$link."&amp;width=300&amp;height=300&amp;header=true&amp;colorscheme=light&amp;font=tahoma' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:300px; height:300px;' allowTransparency='true'></iframe>";

echo "</center>";

closeside();[/syntaxhighlighter]

Please refer to the page at http://developers.../activity/. You can check for some Good options and help there !

Temp. Screenshot :
i55.tinypic.com/mrsio7.png

Hi! Its me, Ankur Thakur! :)

Posts: 1279

Joined: 02/11/2010

Craig


Fusioneer

#2

Posted 4 years ago

Hey Ankur,

Very nice man. Works good at my end.

Posts: 4527

Joined: 27/09/2005

BlackDragon


Member

#3

Posted 4 years ago

Nice,
Thanks man Smile .
http://www.bolja-...ost.com.ba My best PHP-Fusion design.

Posts: 87

Joined: 14/10/2011

Jump to Forum:
8 users are online
0 member and 8 guests