Facebook application - Add wall - facebook

How can I add a wall on my facebook-application (fbml).
Do I have to store the wallposts (user-id and comment) in my database, and display them using fb:wall, fb:wallposts, or is it a plugin like fb:comments for this? If so, how do I add a textfield/form for interacting with the wall?

Figured it out. It has to be stored in a separate database. fb:wall etc. just mimics the look of a wall-

http://developers.facebook.com/docs/reference/fbml/wall/
FBML has been deprecated. Starting June 1, 2012 FBML apps will no longer work as all FBML endpoints will be removed. If you are building a new application on Facebook.com, please implement your application using HTML, JavaScript and CSS. You can use our JavaScript SDK and Social Plugins to embedded many of the same social features available in FBML.

Related

Is it possible to post FBML (a way to use HTML-like content) data through Graph API?

Any way to join FBML and Graph API to post HTML to a FB page?
FB Iframe's based solutions are welcome too.
EDIT 24 hrs after: After play with the Page Tab functionality I have found that it is the best way to embed custom content (HTML/CSS/javascript) inside FB pages.
Basically are iframes. In the Page tab settings you must enter the URL to embed. That's all! You can use Signed Request to get the id's page and something called app_data. With that you can dynamically manage your embedded content!!!
Thanks to DMCS to guide me to it.
Yes, while the FBML is being deprecated, there is another way to accomplish posting something to a page.
You can see an example here of what is called a page tab application. It is an app specifically designed to be used on a Facebook page. It becomes a tab (can even be set to the default of what a visitor sees).
Here's an example: http://www.facebook.com/GoDaddy?sk=app_233280480043288
You can see that the content is HTML and you have full control over that HTML since it lives on your server. This also demonstrates how a fan-gate operates.
https://developers.facebook.com/docs/reference/fbml/
We are deprecating FBML. On Jan 1, 2012: FBML will no longer be supported on Platform. June 1, 2012: FBML apps will no longer work. All FBML endpoints are removed. If you are building a new application on Facebook.com, please implement your application using HTML, JavaScript and CSS. You can use our JavaScript SDK and Social Plugins to embedded many of the same social features available in FBML.

How can I replace this FBML code with iframe-ready code?

I get to work on an old Facebook App, which is a canvas facebook application and uses FBML.
Now none of the tags of FBML seems to be working, so i just want to know, is it completely removed by facebook?
If yes, how would i write the code in the for:
<fb:dashboard>
<fb:action href="http://apps.facebook.com/ilovebolly/index.php">Home</fb:action>
<fb:action href="http://apps.facebook.com/ilovebolly/movie.php">Movies</fb:action>
<fb:action href="http://apps.facebook.com/ilovebolly/celebrity.php">Celebrities</fb:action>
<fb:action href="http://apps.facebook.com/ilovebolly/news.php">News</fb:action>
<fb:action href="http://apps.facebook.com/ilovebolly/invite.php">Invite Friends</fb:action>
<fb:help href="http://apps.facebook.com/ilovebolly/help.php">Help</fb:help>
</fb:dashboard>
Is there any method in the Javascript SDK or will I have to write pure HTML, CSS for this?
According to the roadmap, you can no longer create new FBML apps. However, if it's an old app you should be able to use FBML for the timebeing. According to the FBML reference, the individual tags aren't deprecated either. Implementing this for an iframe would involve pure HTML/CSS and Javascript if you want - there's no JS SDK method for it.
Yes its a part of the Facebook Roadmap for 2011. you can check some tutorials for developing applications with the facebook php graph api. Check this link.

facebook-c#-sdk rendering unwanted html tags

I'm trying to get a simple facebook application to work, based on the downloaded example projects. The code prints some javascript code which makes perfect sense. The problem is it wraps it in a tag, and also prints a body tag. These things mess up facebook fbml apps, so that when I try to run the application through facebook I get this error:
FBML Error (line 3): illegal tag "body" under "fb:canvas"Sorry, the application you were using is experiencing a problem. Please try again later.
When viewing the source I can see that the problem is the injected html and body tags. Am I doing something wrong? How do I get the sdk to print the javascript without printing these extra tags?
Thanks a lot!
First off, the Facebook C# SDK does not support FBML applications. Facebook is deprecating FBML. I would strongly suggest building an iFrame app if possible. That being said, the Facebook C# SDK has nothing to do with the html markup. Simply remove the html markup from your master page.
You should be able to get the Facebook C# SDK working with FBML, but again we do not support it and I would not recommend spending time developing a new app on a technology that is being deprecated.

Can I have Google maps within a Facebook fan page?

I need to use Google Maps within a Facebook page (as a new tab). Is this possible? I searched online and could not find out how this can be done. Please help.
You will have to use the fb:iframe element to display an iframe that contains the Google Map. You cannot embed the Google Map directly in a FBML tab because you cannot use the outside javascript. Note also that Facebook will soon be replacing FBML tabs with iFrame tabs so in a few months this will not be an issue.
Here is the documentation on the fb:iframe http://developers.facebook.com/docs/reference/fbml/iframe
Unforuntately this cannot be done as complex Javascript and iframes don't work. This is a BIG NO!
Hopefully in future (end of 2010) Facebook will change some stuff!

How to embed a Facebook page wall, into a website, with all actions of "Like", "Comment" on posts?

Is there a way to embed a Facebook page wall into a website? Without using Graph API?
I want to have the wall exactly as styled from Facebook, with all actions to Like, Comment and Share but from my website.
I'm sorry but there is no way to easy reproduce your wall on your website. You can easily get contents (but it will not reflect the facebook's wall as some content is filtered), using facebook's javascript sdk or graph api, but you won't be able to add universal like button using javascript sdk for every posts, as facebook requires to like some objects (like pages) directly with their like social plugin.
You can check a lot of facebook widgets you can easily implement on your website using Javascript SDK on the fbrell application.
Happy facebook programming!
Based on these requirements, would an iframe produce the desired effect? Maybe even a regular frame? (I haven't used those in a long time, so I don't remember if there's some restriction that would prevent loading external content with them).
When you say you want these actions "from your website" what exactly do you mean? Do you just want to wrap the Facebook content with your own (in a frame) or do you want to actually do something locally with these actions, intercepting them somehow?
You will need to use FBML. or custom code from for using Graph API, i dont think you can do it any other way. look up facebook documentaion for details.
There is no way you can embed the same wall, yet you can use paste your wall's contents on your webpage,
If you want Share, Like and comment button to perform action on your webstie then you have to create your own db and user management
But...
Share, Like and Comment buttons which will effect your original wall in facebook is not possible.
double think. I have been working on a Wall Feed for Pages for some time now, what you are looking for can be done, but you would need to use the Graph API to accomplish..
Sample Here http://shawnsspace.com/plugins/wallfeed.php Likes, Commenting is disabled.
Emulates the Wall for http://facebook.com
I used a combination of Graph API "PHP-SDK 3.1.1", "Javascript SDK". This can be done with pure client side Javascript though.