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
23
votes
11 answers

FB.getLoginStatus not calling its callback

The title really says it all. Under some (undetermined) conditions FB.getLoginStatus() just stops working and won't invoke the callback I gave it. The only interesting clues I've found are FB.Auth._loadState is stuck on "loading" -- whatever is…
Michael Lorton
  • 43,060
  • 26
  • 103
  • 144
15
votes
3 answers

Looking for FB.XFBML.parse callback function?

is there a callback function (e.g. onComplete) for this? I would like to display a loader. FB.XFBML.parse()
fabian
  • 5,433
  • 10
  • 61
  • 92
13
votes
6 answers

Javascript: My fbAsyncInit() method never gets called

I'm copying the code right out of this page on Facebook's developer website and the fbAsyncInit() method never fires. I've also read this page, I've tweaked the code quite a few different ways, and I cannot get the method to fire. Your thoughts? …
BeachRunnerFred
  • 18,070
  • 35
  • 139
  • 238
11
votes
4 answers

how to check special permissions in facebook

how can i check in javascript if user has granted my site the publish stream permission ?
Yan
  • 1,424
  • 4
  • 21
  • 44
7
votes
1 answer

What purpose does makeEmptyFunction serve in fbjs?

I was looking through the React source and stumbled across a requirement with var emptyFunction = require('fbjs/lib/emptyFunction');. I looked at this function and was confused by what it does. Here is the function function makeEmptyFunction(arg:…
chackerian
  • 1,301
  • 2
  • 15
  • 29
6
votes
2 answers

How to delete an HTML element inside a div with attribute contentEditable?

have this html:
Text to delete
need that the span (and all text inside) is removed with a single backspace, is it possible?
byterussian
  • 3,539
  • 6
  • 28
  • 36
6
votes
1 answer

Why does my setTimeout speed up when I have multiple tabs open to my site?

I have a timer that counts down every second. It works great until the user opens up 3 or 4 tabs of the my site, at which point the newest tab's timer goes double or triple speed. I can currently only reproduce the bug in IE8. I was previously…
lamplighter
  • 303
  • 3
  • 7
6
votes
3 answers

Best IDE for Facebook apps (FMBL and FBJS support)

I have a reasonable workflow for developing an iFrame app for Facebook. It's reasonable because I can test the app on localhost with a local Apache in any one of a myriad of IDEs that support HTML, CSS, and JavaScript (Visual Web Developer,…
Nosredna
  • 83,000
  • 15
  • 95
  • 122
5
votes
4 answers

How to Determine if Facebook User 'Likes' a Certain Page

Is there any way to determine if a Facebook user 'likes' a certain page with the API Facebook offers currently? UPDATE I have been trying to get this to work via the PHP graph API for a while now with this code. $fbconfig['appid'] =…
bimbom22
  • 4,510
  • 2
  • 31
  • 46
5
votes
4 answers

Tagging friends in a fb.api status update?

Is it possible to tag friends somehow using the Facebook fb.api (JavaScript SDK) call? By tagging I mean what happens when you use "@" in the regular facebook.com UI.
quantum rookie
  • 667
  • 1
  • 6
  • 4
5
votes
2 answers

How to do any type of info sharing from within a Facebook tab?

Firstly apologies for the length of this question, and for asking about the Facebook API (seemingly one of the most inconsistent API's in the world...). The Situation: We're producing an Facebook product 'community' - type page for our client,…
bharling
  • 2,800
  • 1
  • 18
  • 25
4
votes
6 answers

FB.ui feed not giving a callback

I am unable to get any feedback from my Facebook FB.UI() method. I am convinced that I am using it correctly, as the actual post does post to my wall, but the callback data is either missing or empty. I am using: FB.ui({ …
mauzilla
  • 3,574
  • 10
  • 50
  • 86
4
votes
3 answers

Facebook invite friends dialog height issue

We have integrated Facebook Connect to our website, including the invite friends function. The funny thing is, some users are able to see the full dialog and some users are only able to see the dialog in the picture shown below. Any ideas?
doodoodukes
  • 148
  • 3
  • 12
4
votes
1 answer

How to handle extended permissions dialog

I used restfb to check extended permissions of user. I click allow permission dialog will not pop it up again next time. However I clicking "Don't Allow" on the permission dialogue box will bring it back up every time when this page is accessed. I…
khanh
  • 4,516
  • 10
  • 29
  • 48
4
votes
1 answer

javascript equivalent of html_entity_decode that doesn't rely on innerHTML?

I'm looking for a javascript version of PHP's html_entity_decode. I found this: function html_entity_decode(str){ var tarea=document.createElement('textarea'); tarea.innerHTML = str; return tarea.value; …
Mike Sherov
  • 13,277
  • 8
  • 41
  • 62
1
2 3
15 16