fbjs

Grabbing data from an i-frame embedded Facebook application

Using an iFrame, someone on my website can access their Facebook account, display a list of their photo albums, and then display photos from selected albums. At the moment, when the user clicks a photo, I display a dialog box that shows the photo's path. All of the above works perfectly. My next step is to pass the photo's path info b...

Is it a bad idea to auto generate javascript code from the server?

I'm developing a facebook app right now all by my lonesome. I'm attempting to make a javascript call on an onclick event. In this onclick event, I'm populating some arguments (from the server side in php) based on that item that is being linked. I'm inserting a little bit of JSON and some other stuff with funky characters. Facebook expe...

How do I get the UserVoice Feedback Tab to display on a Facebook app page using FBML?

I have a Facebook application that is using FBML and I want to include the UserVoice feedback tab widget on my app's pages. I copied and pasted the JavaScript into my FBML page, but when Facebook renders the page, that JavaScript is removed, so the tab doesn't show up. Does anyone have experience with Facebook's modified version of Java...

How do I debug issues that I can't reproduce on my dev system?

I have recently finished phase 1 of my Facebook game: Rails Across Europe It works fine on my dev system, but other people report errors and timeouts when they try to run it. Does anyone know how I would go about debugging these issues if they don't occur on my system? Thanks. ...

how to add my application icon next to link button in facebook using api

Hi, I have created application in facebook. I want to add my application after link button where photos,video,calendat,event,link and more buttons are there. Is there any possibility to add my application in facebook like photo or video under more button. Please help me regarding this.. Thanks in advance. ...

How to post sheduled posts on my friends wall in facebook

Hi, I want to post updates or messages about my application to my friends .How to post updates or messages on friends wall at specified time interval. Thanks in advance... ...

fbjs setInnerFBML does not work in Safari

Hi I am having problems using fbjs and creating a div dynamically and then using appendChild to append it to an existing div. heres an example: var count = 0; function addDiv(){ var theDiv = document.createElement('div'); theDiv.setId(count); theDiv.setInnerFBML('some html here'); count++; document.getElementById(...

FBJS and Dom Ready

I want to know how can I use $(document).ready or something like that in FBJS for Facebook applications. I tried $(document).ready but it ain't working. Also I couldn't find any associated document... ...

Change HTML SELECT OPTIONs using a json object in FBJS

I have a html select input with a default set of options (it has an ID). I also have a json object that looks like var replacement_options = {'value 1':'display 1', 'value 2':'display 2' .... How would I replace the options in the select with the values and displays from the json object using Facebook JS? (FBJS) ...

Form Validation with FBJS

Hello, I've a form validation problem with FBJS to use on Facebook application. I checked out validation examples on documentation and I can check textbox values with form.serialize(); but unfortunetely I couldn't figure out how to check dropdown and checkbox values. Thanks in advance.. ...

Facebook connect FBJS misssing accented characters

I use FBJS FB.Connect.streamPublish. The content of 'What's on your mind?' field is filled by my code and includes accented characters. On IE it appears fine. On FireFox the accented character do not show. alert (message) on the message shows that it does include the missing character but it does not show up on FB dialog. Any advice on...

Facebook.notifications.send not working with FBJS

Hi, I know the notification.send is about to be deprecated but I still wanted to try it out. I'm using javascript on client side and want to send notifications from the client side. I'm using Facebook.notifications.send('uid','message','user_to_user' Doesn't return me any results also tried. Facebook.notifications_send('uid','messa...

How to use Facebook FBJS Feed Forms

I'm trying to call a Feed Form in my Facebook application and I'm not sure how to do so. I'm not familiar with the FBJS and its API. Specifically I need the following dialogue to show up: http://wiki.developers.facebook.com/index.php/Feed%5FForms Here's what I got for now: <script type="text/javascript"> var attachment = <?php echo jso...

Periodical Update in FBJS

Does anyone know of a method to update a certain div tag using Java and works in the Facebook canvas? If so, can you post up a code example and what dependencies I require? ...

How create a function method on FBJS that reference 'this' as HTML element?

Hi, have tried to use this my own function on FBJS: function addEvent(event,fun,pars){ pars.event=event; pars.listen=function(){ fun(this, pars);return false; }; this.addEventListener(event,pars.listen,false); } but dont work...if call: obj=document.getElementById("id_element"); obj.addEvent(....); Firebug return this error:am12345...

Facebook Ajax.post fails after calling Facebook.showPermissionDialog

I have a situation where I call Facebook.showPermissionDialog('offline_access'...) then later I make an ajax.post call. The ajax.post call fails if the call to the permission dialog was made prior. But it succeeds when the permission dialog was not called prior. Is anyone aware of some relationship between this dialog and ajax.post? If...

How Clone DOM object on FBJS?

Hi have a list generated with FBJS, now i need to 'attach' this element inside two div on the page, i tried: div1=document.getElementById('div1'); div2=document.getElementById('div2'); empty(div1); empty(div2); // 1 div1.appendChild(ul); div2.appendChild(ul); // 2 div1.appendChild(ul); ul2=ul; div2.appendChild(ul2); //3 div1.app...

facebook fbjs script dosent work with runat="server" attribute

hi, I am trying making facebook application with asp.net. My script code dosent run with form runat="server" attribute. I check with firebug and I am getting this error : XXX_form is null. my code : <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <script> function displayError(title, me...

Possible to fetch Facebook application API secret?

I'm using FB.Connect.createApplication (http://developers.facebook.com/docs/?u=facebook.jslib.FB.Connect.createApplication) to create applications on the fly. The problem is that the method doesn't return the API secret (only the app ID and api key). This is a big problem. Does anyone know if it's possible to fetch this data provided you...

Embedding RSS and Twitter onto Static FBML??

Hi guys, I've been asked to build a facebook fan page, that displays the latest RSS from a blog and the latest tweets from an user. Something just like this: http://www.facebook.com/ibmargentina?v=app_223277347226&amp;ref=ts I already know the basics for working with FBML, but I can't figure how can I display external data... Any tips...