Buddypress social query_posts by displayed_user

In a custom user tab I’m trying to display that users posts. (displayed user, not logged in user).

I found this code on a forum but it’s not working for me. It should pull the ‘displayed users’ posts only, instead it shows all posts. How Can I make it pull only posts by the “displayed user”?

query_posts( 'author=' . $bp->displayed_user->id );

// the Loop
while (have_posts()) : the_post();
the_content( 'Read the full post »' );

What am I doing wrong?

Thanks a ton!