I am writing a facebook application. The application is written in ASP.NET MVC. For the compatibility reason, I chose to use .NET 3.5 instead of .NET 4 (Because the application will be ported to Linux with MONO, which previous supports up to .NET 3.5). In the end of the applicaton, user will see a friend selector to send invitation. Please refer to part 1.
part1.
<fb:serverfbml style="width: 755px;">
<script type="text/fbml">
<fb:fbml>
<fb:request-form
action="http://localhost:7708/Thanks.htm"
method="POST"
invite="true"
type="Research Participation"
content="Send invitation!!"
<fb:multi-friend-selector
showborder="true"
actiontext="Invite your friends to join the research">
</fb:request-form>
</fb:fbml>
</script>
</fb:serverfbml> <script type="text/javascript">
FB.init("I also entered my key here", "/xd_receiver.htm"); </script>
part2
<fb:serverfbml style="width: 755px;">
<script type="text/fbml">
<fb:fbml>
FBML FBML
</fb:fbml>
</script>
</fb:serverfbml>
Everything works great in Windows. I tested with visual studio. However it doesn't work properly when we port it to Ubuntu. (with Apache2 with mod_mono) The multifriend selector doesn't render at all!!! I tried several approaches. For example,
Change the path string of xd_receiver.htm in FB.init , like "http://localhost/xd_receiver.htm", "xd_receiver.htm", "xd_receiver" and none of them worked.
Enable all apache2 modules.
Try to minimize the code. for example, make it like part2.
In windows, it correctly shows FBML FBML. In Ubuntu, nothing is showed.
- Write the code as simple .htm file (now runs from htm file instead of aspx file), in windows it works correctly, however in Linux it still doesn't work.
I cannot figure out what is still missing.
Can anyone give me some advices?