samoht Posted May 2, 2011 Share Posted May 2, 2011 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? Quote Link to comment https://forums.phpfreaks.com/topic/235362-fackebook-like-box-shorten-title/ Share on other sites More sharing options...
spiderwell Posted May 2, 2011 Share Posted May 2, 2011 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 you might get more knowledgeable people on the facebook developers page who know this? Quote Link to comment https://forums.phpfreaks.com/topic/235362-fackebook-like-box-shorten-title/#findComment-1209504 Share on other sites More sharing options...
samoht Posted May 2, 2011 Author Share Posted May 2, 2011 Thanks siderwell, No, the $header variable does not contain the title- nor any of the other php variables fed into the iframe. I looked on facebook developers page and the plugins page and did not find anything there. Quote Link to comment https://forums.phpfreaks.com/topic/235362-fackebook-like-box-shorten-title/#findComment-1209507 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.