I'm trying to use xfbml within my facebook app (iframe) but it somehow doesn't show up.
I copied this tag into one of the pages...
<fb:share-button href="http://apps.facebook.com/example" type="box_count"></fb:share-button>
..but as i said it doesn't show up.
Any idea how that works?
Thanks in advance!
Are you loading the Facebook Connect javascript libraries? fbml is not going to render without Facebook's javascript parsing it.
Try this tutorial (its German) but there are Code-Snippets:
http://www.my-digital-home.com/2010/06/09/facebook-xfbml-leicht-gemacht/
how and where we must load the Facebook Connect javascript libraries?
Related
I need to implement the facebook connent on UIWebview using HTML5/ Javascript. Presently what I implemented is working fine on iphone safari but not in native application. Please Suggest. Thanks
when the app loads up have it open a web view that point to a website that does what you want it to. see facebooks graph api documentation for web apps/websites
I'm working on this kind of app also. I haven't finished it yet but after googling I found just this link that seems to work with UIWebView
http://suhinini.me/2011/05/24/embedding-facebook-social-comments-plugin-to-an-ios-application/
I've tried the HTML5 code on the comment plugin page but it doesn't work. The UIWebView just shows nothing.
I'm still looking for the best solution.
edited
Ok now I got my app working. What I did was creating a HTML file, containing the code from facebook comment plugin page, and put it in my project (I think this should work fine with file on server also). I use this
[UIWebView loadHTMLString:baseURL:]
since my HTML file is local.
This is the facebook comment plugin page
https://developers.facebook.com/docs/reference/plugins/comments/
It seems the javascript SDK is not working at all on my domain. The like box no longer works... This happened after I created an app canvas page, I think.
I'm trying to use FB.ui on my apps canvas page but nothing with the FB js SDK is working. I figured it might be a javascript problem so I removed all of the jquery / mootools but no luck.
One thing is I don't have a secure URL yet, could this be my problem?
Secure URL is not the issue. Please check the Error console to see the errors thrown? To resolve FB Undefined issue try loading that asynchronously as suggested by facebook use the code provided here http://developers.facebook.com/docs/reference/javascript/
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.
We have a Face book page.We add a custom FBML tab.Now we want to add Comment Face book plugin.I tried to add an script what i got from Face book Social Plug in.The code is
<div id="fb-root"></div><script
<src="http://connect.facebook.net/en_US/all.js#appId=178089302222317&xfbml=1"></script><fb:comments numposts="10" width="425"
publish_feed="true"></fb:comments>
After that i put this script to custom FBML page but its not reflecting any thing please suggest to solve this issue.
Thanks in advance.
You should start over and not use FBML but use an iframe instead.
You are trying to create an app on a page tab. To do this take a look at the FB dev site and it shows you how to get started with an iframe based app and then how to get that to work on a page tab.
https://developers.facebook.com/docs/guides/canvas/#tabs
Once you move to iframes you can use all of the social plug-ins and other advanced features like the Graph API.
<fb:comments xid="some_unique_id_doesnt_matter_what" canpost="true" candelete="false" publish_feed="true" numposts="10" returnurl="http://facebook.com/YOURPAGE">
<fb:title>Headline</fb:title>
</fb:comments>
this is what you are looking for.. your code doesnt work in FBML, yours is XFBML
<fb:title>
is optional
I am trying to use FBML to redirect a user to the Wall after they click the "Like" button. I understand that FBML is the older way to do this. It does not seem to be working at all though. I am using the standard tag:
Any ideas?
I got this working so what is your actual problem??Are you using the same tag??I am using FBML application.