Facebook's JavaScript SDK provides a rich set of client-side functionality for accessing Facebook's server-side API calls. It can collaborate with any SDK like PHP, C#, Java, android, ios, etc
38
votes
7answers
16k views
Facebook JavaScript SDK over HTTPS loading non-secure items
I have a Facebook application that uses the Facebook Connect.js.
I am running my application over HTTPS. All content on the site is delivered from https:// with the exception of some content that ...
26
votes
5answers
23k views
How can I make the Facebook Like button's width automatically resize?
I'm implementing the Facebook Like Button, but I'm running into some trouble with the width. I'm using the JavaScript SDK implementation, not the direct iframe.
According to the documentation, the ...
24
votes
3answers
48k views
How to get access token from FB.login method in javascript SDK
I need to get the access token from FB.login method in Javascript SDK. My login code is
FB.login(function(response) {
if (response.session) {
if (response.perms) {
} else {
...
22
votes
16answers
42k views
Facebook Javascript SDK Problem: “FB is not defined”
The following code, copied from the Facebook documentation here, is not working for me in Chrome.
<div id="fb-root"></div>
<script ...
17
votes
5answers
13k views
JS SDK FB.login() works but pop-up dialog is staying open after logged in
I am using the JS SDK for Facebook based on the NEW GraphAPI for Auth/Login.
Has anyone had this issue when logging in after FB.login() was called via the JS SDK?
The problem: after I initialize by ...
16
votes
5answers
572 views
Multiple og:image tags not being displayed by share dialog or update status box
I am currently working a new feature to allow users to select the thumbnail they would like to use when sharing an page on Facebook. The user should be able to use the Facebook widgets like the send ...
16
votes
2answers
7k views
multiple facebook like buttons (fb:like) are not working: unliking themself
EDIT: LAST UPDATE:
So, we've tested some more. I used the facebook developers 'lintner' http://developers.facebook.com/tools/lint/. There are no errors found on either one of my pages PLUS the like ...
13
votes
3answers
12k views
FB.logout() called without an access token
I'm trying to log out of a website i've created with Facebook integrated.
Logging in works fine, but when I want to log out Firebug consistently gives me this error:
FB.logout() called without an ...
13
votes
2answers
2k views
Facebook Login API HTTPS Issue
The website I'm working on has a Facebook login option, but recently a user reported it wasn't working for them. I disabled my extensions etc, I got this error in my console:
Blocked a frame with ...
11
votes
4answers
5k views
How do you animate FB.Canvas.scrollTo?
I've created an app that is a set size (around 2,000 px tall) and have a menu that calls FB.Canvas.scrollTo in order to help the user navigate the long page.
Is there any way to add a smooth ...
11
votes
3answers
13k views
Get user basic information using facebook Login button plugin?
Here I am using Facebook Login button plugin and javascript sdk
I am able to successfully login and logout by using above.
When a first time user has gone through authentication process I need to ...
11
votes
5answers
6k views
Permission denied error in all.js
I am using all.js for facebook implementation. I used a facebook button on signup page . by logging through facebook i am getting user name and email of facebook user into the fields on sign up page. ...
11
votes
3answers
15k views
posting to friends wall using facebook javascript sdk
How can I post to a friends wall using the facebook javascript SDK?
11
votes
1answer
2k views
Injecting Facebook JS SDK into AngularJS Controllers
I'm trying to create a facebook service for Angular so I can more easily test code that needs to use the Facebook JS SDK and Graph API for stuff.
Here's what I have so far:
app.factory('facebook', ...
11
votes
1answer
350 views
What is the X-FB-DEBUG header returned from Facebook?
I'm wondering what the header mentioned above is. It's included in the response when I do JSONP calls to Facebook, or even when I simply access http://static.ak.fbcdn.net/
I haven't found any ...