Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.