Leave a comment


amit said on November 14th, 2008 at 8:11 am :

This is simply great.i had searched for the same problem but didn’t found any where.i tried out your suggestion and worked simply great.Thanks a lot


GS said on November 14th, 2008 at 11:36 am :

Hey mate thx for the code but how to code $ProfileContent :(
it is not taking img tag nor a href tag :( any idea???


admin said on November 14th, 2008 at 3:10 pm :

Dear GS:
A sample $Profile Content is attached here.


Mark said on December 19th, 2008 at 4:54 pm :

This cleared things up for me. Thanks for the posting. I don’t think the API test console (http://developers.facebook.com/tools.php?api) exposes the profile_main parameter.


Thomas said on March 7th, 2009 at 9:35 am :

Hi there!

Thanks for those explanations. It worked great for me!

I’m having another problem now. This might be, because I haven’t understood the whole facebook development yet.

Content of a profile box is cached according to http://unfake.it/RA4 until the Canvas page is called again. And it seems to me, there’s only ONE UNIQUE cache?!

I have an app, which gets content from a DB on my host, depending on the fb UID:

SELECT […] FROM […] WHERE uid = $facebook->require_login() […];

User A installed the app, calls the Canvas page and gets HIS content. He than puts the app to his profile, where he can see HIS content in the box. Okay!

Now, user B installed the app, calls the Canvas page and gets HIS content. He than puts the app to his profile, where he can see HIS content. Okay!

BUT: if user B looks at the profile of user A, he also gets the content of himself (user B).

AND: user A also has the content of user B on his profile.

What am I doing wrong?

Is there a way to avoid caching, so that the app on my host is called every time, a profile with a box is visited?

Yes, I have read about fbml.refreshRefUrl(), but that doesn’t work somehow.



Justin said on May 5th, 2009 at 3:23 pm :

Thomas I am running into exactly the same problem you are, were you ever able to find a solution? Thank you!


fanny said on February 22nd, 2010 at 3:20 am :

Hello… thanks for the post. It helped me a lot !!! you save my day… I will re-post this on my blog and link to you :)


Alvaro said on March 15th, 2010 at 2:38 am :

Hi, greettings for South América (I’m speak Spanish) sorry for myy errors. Can you help me? I need post the context in profile box in an iframe please i need your help


jill said on March 23rd, 2010 at 1:13 pm :

encounter also the same problem but dont know what to do with the codes


Andrea said on April 8th, 2010 at 9:34 pm :

Sorry for my ignorance but what do you put instead of blah_n and blah_w

Oct 29, 2008 | Facebook Profile Box Showing No Content to Display

To all those who may have suffered in the same way I have with regards to the new Facebook format:

Issue: When you set the FBML content for displaying content to the profile (specifically the Wall Tab), you get the following error:

No content to display error on Facebook Profile tab

Cause: The Facebook developer wiki suggests using the following format to accommodate the wide and narrow formats (for the Boxes) as well as a main FBML tag string for the profile box:

$fbml = "blah";
$fbml .= "blah";
$fbml_main = "This is the Wall tab profile data";
$facebook->api_client->profile_setFBML(NULL, $user, $fbml, NULL, NULL, $fbml_main);

Fix: Use the setRefHandles instead, setting $ProfileContent and $ProfileContent2 respectively as you wish. (Get it in a txt file)

Just as a reminder, you use <fb:add-section-button section="profile" /> as a way to display the button so that people can add your box to their profile.

Add to Profile

This entry was posted on Wednesday, October 29th, 2008 at 2:29 pm, EST under the category of Coding. You can leave a response, or trackback from your own site.