Jump to content

fackebook like box - Shorten title?


samoht

Recommended Posts

Hello all,

 

I am using a simple iframe to include a facebook like box on my webpage.

<iframe src="http://www.facebook.com/plugins/likebox.php?id=<?php echo $pageID;?>&width=<?php echo $width;?>&colorscheme=<?php echo $colorScheme;?>&show_faces=<?php echo $showFaces;?>&connections=<?php echo $connection;?>&stream=<?php echo $streams;?>&header=<?php echo $header;?>&height=<?php echo $height;?>" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:<?php echo $width;?>px; height:<?php echo $height;?>px;" allowTransparency="true"></iframe>

The problem is that I want to limit the title of the facebook page to 15 characters.

 

Any ideas on how I could do this?

Link to comment
https://forums.phpfreaks.com/topic/235362-fackebook-like-box-shorten-title/
Share on other sites

is the title in $header? or any of the php variables you have? substr() should sort that out easily enough.

If you dont have 'control 'of the title, you might have use javscript to amend it client side directly in the iframe, but that sounds like a bitch to me  :P

 

you might get more knowledgeable people on the facebook developers page who know this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.