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
9
votes
6answers
9k views
create a file using javascript in chrome on client side
I would like to know if I can create a text file and save the file in the users "Downloads" section in his/her computer using javascript. The way my feature should work is when the user clicks the ...
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 ...
3
votes
3answers
9k views
Facebook new javascript sdk- uploading photos with it!
I am trying to upload a photo to facebook album with this javaascript code.
FB.api('/me/photos', 'post', { access_token: GetToken(),
name: 'uploaded photo',
...
12
votes
3answers
11k 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 ...
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. ...
5
votes
4answers
5k views
Facebook Javascript SDK window location reload not working on Firefox
I'm building a website with Facebook Connect and therefore using the Facebook Javascript SDK.
Problem: when using Firefox, the page doesn't reload properly once logged in or logged out.
...
3
votes
1answer
1k views
How to programatically create a Facebook application via JS SDK or Open Graph API? (createApplication)
I know there are currently two methods that can be used to do this, documented (poorly) on Facebook's Developer site:
The old (depreciated) JavaScript SDK FB.Connect.createApplication
A new FBJS ...
3
votes
1answer
207 views
forge.facebook.ui callback invoked with null on iOS
I'm having trouble with Trigger.io Forge and getting a callback from a native FB friend selector UI.
The problem is only showing on iOS, works fine on Android.
Running this code in catalyst on either ...
2
votes
1answer
452 views
Having issue with Firefox 8 for Mac: window.name is undefined
I've been trying to configure the new Facebook Javascript API with my website, but I'm facing an issue with Firefox (working perfectly fine with Chrome and Safari, yet to test out on IE fully but have ...
0
votes
1answer
181 views
How to access fb access token form server running program ( python )
I have developed a fb app and the front end side is working great with my own db. Now i want to make a python program that runs through the command line which posts to my fb account. I know with this ...
0
votes
2answers
1k views
Suggest Page to friends using PHP-SDK
How to implement "Suggest MY-PAGE to friends" using PHP-SDK or using Javascript SDK?
26
votes
5answers
22k 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 ...
11
votes
3answers
12k 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 ...
5
votes
4answers
7k views
Redirect from Facebook canvas page to website
Is there a way to redirect from my Facebook canvas page to my external website? I've seen blogs and stackoverflow answers of the form:
<script>
window.top.location = ...
19
votes
16answers
40k 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 ...