PublishAction problem (VB)

Jan 15, 2008 at 9:10 AM
I am using newest 1.5 toolkit (edited FacebookWebSample), its generally working nicely and friends are listed OK on my 1st test application, however when I try to submit minifeed entry with PublishAction nothing appears on my minifeed, any ideas??

If (Not IsPostBack) Then

If (Not String.IsNullOrEmpty(userId)) Then
Dim q As String
Dim a As String
Dim apic As PublishImage
Dim pics As Collection(Of PublishImage)
pics = New Collection(Of PublishImage)

apic = New PublishImage("http://xxx/white.jpg", "http://xxx/white.jpg")

q = """"
a = "<fb:userlink uid=" + q + userId + q + "/> has done something and wants you to know"
a = "I did something and wants you to know"
_fbService.PublishAction("Test", a, pics)

End If
Jan 15, 2008 at 9:34 AM
Edited Jan 15, 2008 at 9:38 AM
I also tested this one:

result = fbservice.PublishTemplatizedAction(titletemplate, titledata, bodytemplate, bodydata, bodygeneral, target_ids, myImages)

Again, nothing appears on my minifeed.

the result is zero, according its OK status?

P.S: Do I need to change some settings from facebook developer tool to allow posting?? I have currently "can your application be added to facebook" disabled, hope its OK?
Jan 15, 2008 at 7:44 PM

First thing I would check in your application's settings in the Developer application:
Make sure the 'Private Installation' checkbox is not checked as it states that (Check this box to disable News Feed and Mini-Feed installation stories for your application.)
The other thing you will want to check on your profile is your Applications 'Edit My Settings' page and find your application and ensure that it does not say 'News Feed, Mini-Feed disabled', if it does click the edit link to change it.

If your call to the api is returning zero then this should work.
Also if your application is not in developer mode then you will be limited to calling the feed.publishtemplatizedaction 20 times.

hope that helps
Jan 17, 2008 at 2:32 PM
Edited Jan 17, 2008 at 2:37 PM
Thanks for reply,

Where is this "PRIVATE INSTALLATION" checkbox? I cannot locate it from facebook / applications / developer / my apps / appname / edit app/ base options.

also my app is not visible in main facebook / applications, only under developer / see my applications, is it ok thisway or should I submit the app before I can start testing it really?
Jan 29, 2008 at 8:51 AM
thanks, got it working now.

However, one problem: How can I create invite users page for my iFrame app?

Feb 2, 2008 at 2:18 AM
Hello Zik,

you will need to create another application using FBML and change the application settings from IFrame to FBML.

Make new ASP.NET web application using FBML:

In the end, you will have two ASP.NET application:

1. your original application. use Facebook.dll for this (which you are already using).

2. the FBML application. use FacebookNET.dll for that.

In application 2, create two pages:

one called default.aspx, and one called invite.aspx

in default.aspx include the below:

<%@ Page Language="C#" %>
<%@ Import Namespace="Facebook.Service" %>

<fb:FacebookApplication ID="fbApplication" runat="server" Mode="Fbml"
EnableDebugging="true" />

<fb:fbml version="1.0">


<fb:iframe src="" height="740px" width="100%" smartsize="false" scrolling="no" frameborder="0"></fb:iframe>


in invite.aspx include the below:

<%@ Page Language="C#" %>

<%@ Import Namespace="Facebook.Service" %>
<fb:FacebookApplication ID="fbApplication" runat="server" Mode="Fbml" ApplicationName="yourapplication"
EnableDebugging="true" />
<fb:fbml version="1.0">
<fb:request-form action="default.aspx" method="POST" invite="true" type="your application"
content="Get started with your application! <fb:req-choice url=' application/default.aspx' label='Confirm' />">
<fb:multi-friend-selector showborder="false" actiontext="Invite your friends to use your application.">


In the application settings, let the users navigates to invite.aspx
Feb 4, 2008 at 8:53 AM
actually this is not required.

one FBML page is enough, no need for 2 apps.
Feb 4, 2008 at 10:17 AM

Im using "tabs" in my application. how do use them with only one FBML page?!!!!!