All Questions
Tagged with facebook facebook-javascript-sdk
3,700
questions
119
votes
7
answers
409k
views
How to add facebook share button on my website?
I have this code that suppose to work, but doesn't work.
<script src='http://connect.facebook.net/en_US/all.js'></script>
<p><a onclick='postToFeed(); return false;'><...
77
votes
11
answers
112k
views
Facebook API error 191
I'm trying to integrate my project with Facebook. I'm taking baby steps at first and just trying to login, get a Facebook session, and get some user data. I'm developing it locally so my Facebook ...
58
votes
7
answers
129k
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 {
...
53
votes
6
answers
58k
views
Invalid version specified, facebook share plugin error
I want to use the facebook share plugin for the web app I am working on, I only need the basic share button. The app uses requirejs for loading javascript, so I followed the how-to and changed the ...
49
votes
5
answers
38k
views
Using "share_open_graph" Facebook UI to create dynamic share dialog for quiz results
Summary: My problem is getting FB.ui, via the share_open_graph method, to create a customised share dialog that contains different title, description, and picture, based on the user's actions on the ...
47
votes
12
answers
98k
views
Android Facebook SDK: generate release key hash [duplicate]
I'm building an app in which users can log in with Facebook.
I've created the hash keys like following:
try {
PackageInfo info = getPackageManager().getPackageInfo(
"com.app....
46
votes
13
answers
60k
views
Implement Facebook API login with reactjs
I'm working on using Facebook's Javascript SDK for authentication. I've been able to import the SDK properly and put a Like button on my page. But, the facebook login button has to be wrapped in the ...
43
votes
8
answers
24k
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 ...
41
votes
8
answers
75k
views
"Failed to load resource" using Facebook's example code
I'm trying to run the first example from the documentation of the Facebook JS SDK. I created a new app, created a blank document called "facebookTest.html", pasted in the code from the example, and ...
41
votes
1
answer
11k
views
How to remove auxiliary products from FB app?
I wanted to check what that button +Add Product do, added two products and now I want to delete them. But it seems FB doesn't provide any any UI to delete products from apps. Does anybody know how to ...
40
votes
19
answers
107k
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 src="http://connect.facebook.net/en_US/all.js"><...
40
votes
8
answers
65k
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 ...
33
votes
6
answers
100k
views
how to get email id of Facebook user using javascript sdk
I am using JavaScript API to create my app for Facebook. The problem is, it's returning
email = undefined.
I don't know why? And if I use Facebook login/logout button on my app then the alert shows ...
32
votes
7
answers
17k
views
Facebook JS API can't logout
I have a localhost website and script with FB.logout(). After some actions, it fails to log me out and I see next error message in console:
Refused to display 'https://www.facebook.com/home.php' in a ...
32
votes
8
answers
40k
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 ...