Skip to main content

All 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;'><...
Sahibjot Singh's user avatar
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 ...
musoNic80's user avatar
  • 3,698
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 { ...
Damodaran's user avatar
  • 11k
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 ...
Ajinkya's user avatar
  • 846
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 ...
Matt Morrison's user avatar
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....
MikeKeepsOnShine's user avatar
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 ...
ritmatter's user avatar
  • 3,478
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 ...
paperclip's user avatar
  • 2,300
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 ...
sigil's user avatar
  • 9,448
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 ...
Green's user avatar
  • 30.2k
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"><...
Alex Miller's user avatar
  • 1,616
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 ...
martinthebeardy's user avatar
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 ...
user958414's user avatar
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 ...
Enthusiast's user avatar
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 ...
Josh Leitzel's user avatar
  • 15.2k

15 30 50 per page
1
2 3 4 5
247