Error with multi-friend-selector

Aug 8, 2008 at 11:16 AM
Hi,

I'm creating an app in FBML and have added a simple request-form/multi-friend-selector for inviting other users but whenever I try to send an invitation I get an error in the Facebook javascript code saying "Button is not defined" and the invitation does not get sent.  Has anybody managed to get a friend selector working in FBML with Facebook.Net?

My code is as follows - I've stripped it down to make it as simple as possible but still get the error:

<fb:FacebookApplication ID="fbApplication" runat="server" Mode="Fbml" ApplicationName="Fuse-RJI-Test"
    EnableDebugging="true" />
   
<fb:fbml version="1.0">
    <fb:tabs>
        <fb:tab-item href='http://apps.facebook.com/rjiwidgetfbtest/' title='Home'/>
        <fb:tab-item href='http://apps.facebook.com/rjiwidgetfbtest/share.aspx' title='Share' selected='true' />
    </fb:tabs>
   
    <fb:request-form action="share.aspx" method="POST" invite="true" type="Rob's test app" content="test" >
        <fb:multi-friend-selector showborder="false" actiontext="Invite your friends to use Rob's test app." exclude_ids="<%= FriendsWithApp %>" />
    </fb:request-form>
</fb:fbml>

Thanks,

  Rob.

Aug 8, 2008 at 1:35 PM
This is how i do it:

<fb:request-form action="default.aspx" method="POST" invite="true" type="yourapp" content="yourtext <% = Server.HtmlEncode("<fb:req-choice url=\"http://apps.facebook.com/yourapp/default.aspx\" label=\"OK\" />") %> " >
 <fb:multi-friend-selector max="20" showborder="false" actiontext="Invite your friends to blehbleh."> 
<fb:request-form-submit />
</fb:request-form>

Hope it helps.



Aug 8, 2008 at 2:10 PM
Thanks for the reply.  Sadly it doesn't help.  I hoped it might be something to do with the fact that I didn't originally have the <fb:request-form-submit /> but using your code exactly (except for the app name in the URL) I still get the "button is not defined" javascript error.  I've stripped pretty much everything else out of my app.  Do you know if there might be anything I'm missing in the setup of the application?

It's driving me mad and at the moment pretty much making any other development on the app pointless.

Thanks,

  Rob.


Aug 8, 2008 at 11:40 PM
I'm not positive if the FBML-ness changes anything, but this is a known bug with Facebook.

Bill