Posts Tagged ‘Facebook’

HipHop for PHP, XHP and now MySQL: what’s next, Facebook?

Sunday, February 28th, 2010

Facebook EngineeringAlmost a month ago I talked about , a solution to improve the ’s performances server-side: that isn’t “lonely”, because launched too.

I’ve never written anything about it, but XHP is a different markup for integrating in PHP — used by Facebook Lite and I think it’ll handle Facebook Zero ASAP.

Another branch of developers released a patch for 5.1 recently: is the official page of Facebook’s programmers. The patch itself is hosted on Launchpad.

I really can’t understand if I should be worried about: Facebook is changing the web in several ways, but this is different than before.

HootSuite: the best add-on, the worst bookmarklet

Sunday, February 14th, 2010

HootSuiteThere are lots of ways to use , but I use just few of them: for many reasons I prefer the default web interface — anyway, that’s far from being enough for most people.

One of my favorites clients is web-based too: it’s (that actually supports other social networks). Unfortunately, it could be very confusing if you don’t use some “tricks”.

Accessing it via its web site is maybe worse than using the Twitter’s: of course, there are several tools you’d find useful. BTW, you must pay attention to which applications you choose.

Speaking about browsers, the official bookmarklet – called – is IMHO a kind of crap: even loading it in the ’s sidebar, it doesn’t provide a better interface.

It exceeds the standard sidebar width just with a single column — that isn’t enough to control your profile: users with lots of custom columns shouldn’t use it at all.

On the other hand, HootSuite got the best Firefox add-on I’ve ever tried for this purpose: like Posterous does with post.ly (I use those with ), it features as default shrinker.

Although you could also access Ow.ly without registration, installing the add-on allows to share anything on Twitter by clicking the HootSuite’s icon next to the address bar: an alternate version for is available too.

HootSuite functionalities include multi-user accounts and much more, but this is what fits to me. Tweeting an URL can’t be easier — nor hosting and posting attachments.

Accessing Facebook Chat anywhere with XMPP

Thursday, February 11th, 2010

Facebook ChatSo you want to access pardon, I mean via : I’m not jocking, it works exactly like the ’s IM. But with less features.

Forget authentication, audio and video support (at least, right now): it’s the same crap without plugins — yet existing for .

I really don’t care about AIM integration: GTalk provides it too, but I’ve never used it and I won’t in the future.

Anyway, I appreciate that freed its chat, thank to the protocol: I already tested it via Telepathy and it works (exactly like using the dedicated Pidgin’s plugin).

Here’s what you need to get started:

  • Account → Jabber or XMPP
  • Username → foo (some clients need the full address, so add @chat.facebook.com if it doesn’t seem to work)
  • Server → chat.facebook.com
  • Port → 5222

I hope you don’t need any suggestion about the password… just remember to de-select SSL and check Ignore SSL certificate errors if available. Logging enables the web interface too.

Bing helped, but Facebook Search still sucks

Tuesday, February 9th, 2010

BingWith the latest Facebook’s redesign I found more lacks than improvements: the custom news filters weren’t restored yet and sometimes the entire disappears.

As you should know, is one of the main ’s investors: so announced a stricter collaboration with the social network.

I really don’t know what will happen in the near future: still sucks — IMHO, more than ever since the 4th of February.

I hope that the new features will include Bing searches on Facebook and not just vice versa: I don’t fucking care about integration.

Some search enhancements like statuses filtering are available yet: you can choose to split between public and/or friends only updates. Better than nothing.

Anyway, I really want custom filters back on the homepage: they made searches optional, so I didn’t need to turn mad with the Facebook Search’s lacks.

Safer Internet Day 2010: think before you post

Tuesday, February 9th, 2010

Safer Internet Day 2010Today in the is the : to be sincere, I’m not so convinced on the importance of these events… but its purposes are sharable.

This year the slogan is , focusing social network sharing and UGCs: a funny video on is self-explanatory.

I think that the main goal will be to provide effective filters for children: actually, there’s no real way to protect them against dangerous contents.

One of these methods is the Google’s strict filtering: it’s far from being enough. Another useful resource is a campaign by Kaspersky Lab called Stop Digital Pollution.

That’s all good for prevention, but what about censorship? Most of web filters are no longer maintained and I don’t know open resources.

An interesting article comes from : I think that privacy settings are very important and I agree with Will Gardner, admin of digizen — and CEO of the Facebook’s Safety Advisory Board too.

Happy 6th birthday, Facebook: but…

Friday, February 5th, 2010

The 6th Facebook's BirthdayYesterday was the 6th ’s birthday and today a new layout has been launched: posted an analysis of these years and immediately after the redesign has been published.

I don’t care about these changes, but I asked myself where the fuck went the news filters: they were really useful and it seems that they have been disappeared.

Browsing the new layout I wasn’t able to find them anymore: I tried with the site tour too, but without any result.

I hope that a similar function should be available ASAP, because I enjoyed that daily: Facebook is actually the largest feed reader and I’d like to use it so again.

Facebook launched HipHop for PHP

Thursday, February 4th, 2010

HipHop for PHPTo be sincere, I’m not very convinced of this solution: first of all it belongs to server’s configuration — and so most of you won’t ever make use of it, unless you own a server or a root access to it, at least.

Well, – the ’s way to reduce hardware requirements and CPU uses – translates PHP in pure and compile it with (that’s exactly what PHP should avoid to do).

This solution is only useful for large networks with lots of servers and, if it really works as its developers say, it’s a realistic way to solve industries’ issues.

I’d like to thank Facebook that made it public and open source, but I don’t think this applies to small business and personal web sites. So I don’t think to speak about it again in the near future.

How to create a Twitpic-like social archive with Posterous + post.ly

Tuesday, February 2nd, 2010

PosterousThere are several services like you may use, but is definitively the best: hypothetically, you don’t need to know how the s work by now — because does the trick.

It was April when the development team officially proposed itself as a replacement for this purpose, but since January 21 it’s a lot easier.

With the same login – that supports too – you’ll be able to post anything, anywhere: I suggest you to register, although it’s possible to do so without registrations.

An account lets you get an archive to store your uploads with the ability to stylize their output and redirecting the address via . That’s so fast and cool (you could use your personal e-mail address instead).

Adding posts thumbnails in WordPress 2.9+

Monday, January 18th, 2010

WordPress 2.9 came with lots of new interesting features, including an image re-sizer. The main goal of this tutorial is explaining how the post thumbnails work (and what to do for and compatibility).

I used to manage post image and video thumbnails via , but this is completely useless right now: a set of new functions has been introduced to append media to a post as thumbnails.

By default they output -compliance anchors — and you can’t use them in the head element. I found a simple workaround to do so.

Unfortunately, you should use 2 different ‘ functions and this means that you’ll risk twice to find the way I’m going to explain deprecated in the near future. But it works.

The code goes all in the head element – that probably resides in the header.php file of your theme – without the need to add custom functions.

It doesn’t work on feeds: I use to put the same image (in a different resolution) in the post’s excerpt to see it on the feed too. Let’s see the code itself.

<?php
if ( has_post_thumbnail ( $post-> ID ) ) {
?>
<link rel="img_src" href="
<?php
$thumbnail = wp_get_attachment_image_src ( get_post_thumbnail_id ( $post->ID ), 'thumbnail' ) ;
echo $thumbnail[0];
?>
"/>
<?php
}
}
}
?>

You may want to include additional control parameters to ensure backward compatibility at your option. I suppose that you know what you’re doing, so I won’t show how to do so here.

Warning: I was forgetting that – if you didn’t yet for other needs – you must enable post thumbnail compatibility to your custom theme.

<?php
add_theme_support ( 'post-thumbnails' );
?>

This wasn’t enough for me, because I wanted additional resolutions: if you don’t want them too, you could stop here. But I think you shouldn’t — especially for issues.

Of course, previous snippet goes on functions.php instead of the header.php file: for those who want to know, it gets an array and prints the first value (that’s the image ) in a link anchor.

Which custom resolutions should be added?

It mainly depends on your settings: going to Settings → Media you can choose the default Thumbnail size — I chose a resolution of 100×100 pixels, that’s the one included in the head with my script.

Additional basic size should have been set in Medium size and Large size (optionally callable for your posts). They don’t matter for our purpose, but they’re useful for other things: just remember to select Crop thumbnail to exact dimensions (normally thumbnails are proportional) for “security” reasons.

If you don’t need to output different sizes, you don’t need to add extra parameters to functions.php: in my case, I chose to show a smaller image on archive pages… so I added few extra rows to the code.

It’s not really important what you configure here, unless you didn’t set the default thumbnails size to 100×100 pixels — I’ll tell you why. My full function looks as follows:

<?php
add_theme_support ( 'post-thumbnails' );
set_post_thumbnail_size ( 100, 100, TRUE );
add_image_size ( 'single-post-thumbnail', 50, 50 );
?>

The 2nd line is optional if you correctly set the dashboard’s option: you could add as many set_post_thumbnail_size declarations as you need, being aware that they’re different from what you choose for medium and large sizes — or they’ll simply become useless.

And another thing (no, I’m not a Steve Jobs’ fan): according to the main reference I used to build my own solution for sizes, you have to change single-post-thumbnail with post-thumbnail to export custom dimensions on WordPress’ archives. I didn’t need this.

Squares vs. rectangles

An important thing is the image geometry: even if it doesn’t really matter on your theme, it’s essential for thumbnails to show on social bookmarking and other networking platforms.

Although you can choose to crop images instead of simply resizing them, they won’t be so beautiful to look at. My solution is to create just square images, so you don’t need other snippets of code.

It’s still not enough: services like and Digg will output your thumbnails on a white background, so I prefer to use only s without transparency (because Facebook doesn’t like it) for drawings and photos.

Just add a white layer below your pictures while building them for your blog, enlarging the canvas to get a square and you’re done. I’d like to thank Roman Wünsche who first shares the workaround that made this possible.

Facebook implemented retweets, but what about geotagging?

Sunday, January 17th, 2010

And so implemented a feature too: it’s not official, but it should be available for anyone yet. I haven’t tried the via function and I don’t know what to do with it… BTW, it exists.

Basically changed the output of , that now includes the name of the first who shared a content — with a link to the Facebook’s profile (in the form of via foo).

I don’t know what happens if a user got a strict privacy policy – I imagine that it doesn’t work properly – and I found this totally useless, because there’s no way to share via a single click and the basic sharing feature remains the same.

The main lack of Facebook is geotagging: the situation became worse with the recent regional networks deletion, but it hasn’t ever got a proper function to implement geographic data. Fail.