fbml.refreshImgSrc

Dec 28, 2007 at 7:58 AM
Hello-

Has anyone had any success finding a way to call fbml.refreshImgSrc? I notice that API call isn't in the library, but maybe someone had some luck calling it via one of the methods in the FacebookAPI class.

Regards-
Eric
Dec 28, 2007 at 8:50 AM
Edited Dec 28, 2007 at 8:51 AM
Actually, I was working with version 1.2. I just noticed that the call is present in version 1.5. That's great news. However, it isn't working the way I was expecting. Here's the code I have within an admin page in my app:

public partial class Admin_RefreshImages : CanvasFBMLBasePage
{
private const string FACEBOOK_KEY = "MY KEY";
private const string FACEBOOK_SECRET = "MY SECRET";

new protected void Page_Load(object sender, EventArgs e)
{
try
{
base.Api = FACEBOOK_KEY;
base.Secret = FACEBOOK_SECRET;

base.Page_Load(sender, e);

FBService.RefreshImgSrc("http://testapp.mydomain.com/images/bullet.gif");
}
catch (Exception ex)
{
Trace.Write(ex.ToString());
}
}
}

What's odd is that when I run this, I get a 500 error. If I go to my application's trace page (Trace.axd), it's empty. There is no trace information. There's no control tree either. It looks like the info for a page that did nothing. If I comment out the call to RefreshImageSrc, then the page is successful (albiet useless).

Does anyone know what might be going on? Does anyone have some sample code of RefreshImageSrc in action?

Regards-
Eric
Dec 28, 2007 at 11:32 PM
Never mind, I guess. This started working all of a sudden.