Questions tagged [fbjs]

FBJS is Facebook's solution for developers who want to use JavaScript in their FBML applications.

FBJS is Facebook's solution for developers who want to use JavaScript in their FBML applications. It empower developers with all the functionality they need while protecting our users' privacy at the same time.

Although FBJS is depreciated by FaceBook On Jan 1, 2012 ,but its still used by many developers.

226 questions
4
votes
1 answer

Getting window is not defined on ReactJs

I am getting the error: "ReferenceError: window is not defined" on React. Below is my code: import React from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from…
hilarl
  • 6,570
  • 13
  • 48
  • 57
4
votes
2 answers

Converted JavaScript to FBJS - tabs still not working

I tried my best to convert JavaScript to FBJS according to this page: http://wiki.developers.facebook.com/index.php/FBJS. Yet my tabs are still not working properly. Does anyone have any suggestions how to fix this so I can click through the tabs…
JohnMerlino
  • 3,900
  • 4
  • 57
  • 89
4
votes
6 answers

JavaScript tree functionality without framework

I'd like to display a tree on a Facebook page with JavaScript. Therefore there can be no dependencies on frameworks such as jQuery or Ext which won't run on Facebook, at least as far as I know when I last worked on that platform (April 2009). Can…
Dexygen
  • 12,287
  • 13
  • 80
  • 147
3
votes
3 answers

parseInt returns undefined

Facebook's code changes on Tuesday night have impacted how parseInt works in FBJS. Where I previously used it to convert decimal numbers to straight integers, now it always returns undefined. For example: return parseInt(decimalnum); no longer…
Mike Bobbitt
  • 739
  • 9
  • 12
3
votes
2 answers

problem with using getElementById().getValue in FBJS/Facebook !

I am using this code to generate hidden HTML code in Facebook : echo "
".$fdesc."
"; And, I am trying to get this element back in JS using the following…
Ahsan
  • 2,964
  • 11
  • 53
  • 96
3
votes
1 answer

Import statement and Babel

I'm defining two constants using keyMirror from Facebook's fbjs. // file1.js import keyMirror from 'fbjs/lib/keyMirror' export default keyMirror({ CONST1: null, CONST2: null, }) then import them in file2.js: // file2.js import { CONST1,…
FuzzY
  • 660
  • 8
  • 23
3
votes
1 answer

Facebooker Connect and Safari 4

Seems to be a known problem, but I didn't find the solution. When your facebook app tries to perform some JS call via loading fb:iframe with JS code, Safari blocks this saying Unsafe JavaScript attempt to access frame with URL from frame with URL…
Anton
  • 2,483
  • 2
  • 23
  • 35
3
votes
0 answers

How do I detect if the Facebook Send Dialog is available?

The send dialog is a useful piece of functionality. Sadly it is not available on mobile devices I call the api in the following way; app.sendMessage = function(){ FB.ui({ app_id: app.facebook_app_id, method: "send", link: …
Matthew Rudy
  • 16,724
  • 3
  • 46
  • 44
2
votes
2 answers

Fb.Share does not work

Till yesterday everything was working fine. In my website's head there was and links like
dfens
  • 5,413
  • 4
  • 35
  • 50
2
votes
1 answer

How do you create the "share" popup in an iframe Facebook app

I currently have the following method which creates a "share url" essentially the code to insert into an onclick="" within the app. The problem is that now we can no longer have Facebook FBML applications, only iframe - is there a library I now need…
udjamaflip
  • 682
  • 1
  • 8
  • 24
2
votes
3 answers

How can I detect that a user signed into Facebook?

Here is my scenario. When a user opens a browser and goes to facebook.com to sign himself in, I want to be able to detect that and init my Facebook application sign-in process. Is that possible? I'm asking because I noticed that signing into…
boots
  • 21
  • 1
  • 2
2
votes
2 answers

facebook friend list

How can i get the list of my friends friends list using new facebook api. i got the friend list using the below code, $friends = $facebook->api('/uid/friends'); but i am not able to get friend list if i pass their userid in the same function..
Vinoth13
  • 397
  • 3
  • 7
  • 16
2
votes
1 answer

Webpack error: Can't resolve 'fbjs/lib/EventListener'

I'm trying to add react to my existing web app. I successfully installed all required npm modules but after running npm run wbp command I got a lot of errors like: ERROR in ./node_modules/react-dom/cjs/react-dom.production.min.js Module not found:…
ingvar
  • 4,169
  • 4
  • 16
  • 29
2
votes
3 answers

Facebook JS (FBJS) event listener

So I have looked through most of the facebook questions here and it has absolutely confirmed my thoughts. Facebook development may be among some of the worst I've ever used. I'll avoid my rant for now, but as a note to where I'm coming from: tried…
2bsharpdev
  • 285
  • 2
  • 11
2
votes
1 answer

Facebook FB.ui stream.publish error

Working on a project that has a website and a Facebook page. They both reference the same SWF file and JS code that the SWF file uses to interact with the website/Facebook. The custom Javascript action, which invokes the FB.ui() method for sharing,…
Matt Scheurich
  • 959
  • 2
  • 12
  • 24
1
2
3
15 16