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

learn more… | top users | synonyms (1)

-2
votes
1answer
21 views

facebook error function response is not defined

if (response.status === 'connected') { $.ajax({ url: 'https://graph.facebook.com/oauth/access_token', type: 'GET', ...
-1
votes
0answers
13 views

Facebook feed dialog, when closed with the 'X' icon, redirects to index

On my website, I am using Facebook's js sdk to display a share dialog for my users, in an inner page, say example.com/pagewithsharedialog with the following code: FB.ui( { method: ...
0
votes
1answer
28 views

Facebook Login using acess token and offline post through webapp

I have an access token, but how do I login via access token using JavaScript? I want to post on my wall even when I am not logged in, using my access token, so I only click a button to post on wall ...
0
votes
0answers
12 views

Facebook Invalid redirect_URI

We have Facebook canvas app and Signin using Facebook buttons which works perfectly fine when opened from desktop, but same doesnt work when opened from App center of Facebook Android app. While ...
-1
votes
0answers
7 views

How to use this code? - Javascript

How to add this script on my page? https://developers.facebook.com/docs/reference/dialogs/add_to_page the page says it is impossible to apply the application on my profile, even though I have ...
0
votes
0answers
9 views

Facebook Javascript SDK - getLoginStatus not working consistently

I realize there are similar questions on this subject but none of them quite capture the problem I'm having. Firstly, if I follow the examples in the SDK documentation exactly, everything seems to ...
0
votes
0answers
17 views

Facebook api apprequest + android: filter doesn't work

I tried to invite friends to app via fb using js api apprequests. For desktop browsers all works perfectly. For mobile chrome/firefox - I got friends list, but I can't filter friends in it by name. ...
1
vote
1answer
76 views

Can non-game app use FB apprequests dialog in FB v2

In FB api v2.0+, can non-game app use apprequests https://developers.facebook.com/docs/games/requests/v2.2#implementation? I tested that our app which is categorized as shopping app seems to be able ...
0
votes
3answers
291 views

facebook app request for non-games apps

in the Facebook API documentation for requests it says that you can send app requests to friends but it's in the game section! now my question is whether it is allowed for non-game apps to use the ...
0
votes
1answer
150 views

Alternative for Facebook request for non-canvas app?

I have an app where a user creates some object and invites people to interact with it. It's not a game and it's not a canvas app. I tried to get requests to work probably and couldn't After reading a ...
1
vote
0answers
12 views

Update JS variable inside API callback function [duplicate]

I'm trying to use a MVC in my JS the problem is that I can't figure out how to obtain the following behaviour. I have a var granted inside a "member" function (checkFbEmailPermission) of the ...
1
vote
3answers
688 views

Facebook Share dialog doesn't work when href parameter is a variable

I'm trying to share a link on Facebook from within my web app. I already have the SDK initialized, etc., and the following code works fine: callToMyAPI() .then(function(response) { ...
0
votes
0answers
11 views

convert facebook short term token to long term token

Below code is to convert and show short term token to long. Is there any direct code method to acess long term token function checkLoginState() FB.getLoginStatus(function (response) ...
0
votes
0answers
23 views

share and like facebook buttons are not working

I have a post with 2 buttons, share and like: <input class="fb-like contact-submit" data-href="<?php the_permalink(); ?>" type="button" value="LIKE"> <input class="fb-share-button ...
0
votes
1answer
19 views

Why facebook permission is deleted, the status is still connected?

I use this to get user's permission window.fbAsyncInit = function() { FB.init({ appId : '00000000000000000000000', xfbml : true, version : 'v2.2' }); }; ...
1
vote
1answer
2k views

MySQL update via Click of a image button PHP

I understand how to update active user data via using a form... But how to i update a certain column for the currently active user by click a button NO FORMS for example... i have a main page where a ...
0
votes
0answers
5 views

Custom graph open story posts an incorrect link (Facebook JS SDK)

I made a Facebook app that utilizes custom open graph stories. While it works with links such as: http://www.example.com/some-slug It won't work with links like this: ...
0
votes
1answer
20 views

Facebook permissions and null data handling

I have to issues I have come across with regards to Facebook Login - 1st being - Above are 2 images of a users Facebook app settings (Facebook>>settings>>apps>>{select an app}) As seen in the ...
1
vote
1answer
20 views

Why non-canonical URL with a fragment identifier (#) is shared with a `_escaped_fragment_` query parameter?

I'm using Facebook's Share Dialog to share a URL like... http://www.example.com/products/9-some-name#!23 In the HTML for that page, a different URL (also with a fragment identifier) is specified as ...
1
vote
1answer
8k views

what is facebook app ID?

Hi i'm trying to place a facebook like button in website With the following code <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = ...
0
votes
1answer
29 views

Difference in permissions between using Graph API Explorer and testing out on local environmennt

I'm using the JavaScript SDK for Facebook on my Angular webapp. I have the webapp registered on Facebook Dashboard (I'm listed as Developer). The objective is to make a post on a Facebook Page AS THE ...
-2
votes
1answer
19 views

Facebook Graph Search NLP interface SDK?

In today's time I am able to see Facebook Providing an Interface for the Natural Language Query Processing. I would like to know if there is an SDK or some API leveraging which I can build such ...
1
vote
3answers
68 views

React Native and Parse.FacebookUtils

I'd like to sign users into my React-Native app using Parse and Facebook but it seems like the Facebook JS SDK is dependent on the dom. How can I sign in a user with facebook? I'm currently using ...
0
votes
1answer
27 views

Backbone / Facebook API not working as expected?

In my index.html I call the Facebook SDK. In there I have the following code that triggers a controller in my Backbone application. The trigger runs a function that calls the FB.api() that gets the ...
0
votes
1answer
34 views

FB JS SDK - How to check whether any user has logged in for the first time

I'm using this function as event handler for my onclick event and it is working fine - var facebookLogin = function() { checkLoginState(function(data) { if (data.status !== 'connected') { ...
0
votes
2answers
117 views

Iron-Router and Facebook Javascript SDK

Iron-router seems to break the functionality of the Facebook Javascript SDK. I want to display a popup through which a logged in user can send a private message to their friend on Facebook. After ...
0
votes
0answers
4 views

is there a way to send a private message to page or facebook group?

i tried this "https://m.facebook.com/messages/compose?ids={{id}} I use the id of the page or group but still it doesn't take into consideration, and gives meme a window with a empty destination , ...
0
votes
1answer
25 views

Facebook Login with C#: Can you make login and registration independent?

It looks like the markup <fb:login-button scope="public_profile,email" onlogin="checkLoginState();"> </fb:login-button> does both register and login. Is there a way I can make one button ...
0
votes
1answer
26 views

Facebook - send chat message and/or invitation to visit an external page

I am developing an interactive website, where there is a list of users and a list of user's friends (by my website's usernames). I would like to add the possibility to connect a user to his account on ...
0
votes
1answer
21 views

create event on facebook via graph api or javascript sdk

I want a "create event facebook popup" with preconfigured parameters. I have bit of coding as below but i am really confused how we can go further. My Code below <script> ...
5
votes
1answer
3k views

What are the units of FB.getAuthResponse().expiresIn?

When I do this in the Facebook JavaScript API: FB.getLoginStatus(function(response) { console.log(response.authResponse.expiresIn); }); I get back an integer like 5184000. When is that? What ...
0
votes
0answers
35 views

FB.api not working properly

I am using facebook javascripr sdk for login functionality. But FB.api('/me', function(response)) not working as expected. When i finished with click on login button it should display my profile ...
-1
votes
0answers
39 views

Api call didnt return anything in facebook

Hey guys i am trying to make a facebook application..When a user is logged in and if a music is played or playing it must be detected by the app and the action must come in the recent activity of the ...
1
vote
2answers
7k views

Share link to posts when using FB.ui

I made a small app to FB that is using FB.ui to allow users to share it on their wall. I'd like the shared posts to show "Share" link next to "Comment" and "Like", like on any normal wall post. Is ...
0
votes
0answers
13 views

Facebook FB.ui dialog iOS Web App unclosable

I have FB.ui working well, I can share whatever info I need to share. However the issue is that it's being rolled into a Web App (This "add to home screen") for an ipad. Whenever the dialog opens, ...
0
votes
2answers
72 views

Facebook: show open graph dialog when posting expects object reference

I want to show the open graph dialog to allow users to write a message before post on their timeline. I'm trying to use the share_open_graph dialog but for some reason it says that the action is not ...
1
vote
2answers
1k views

Display Facebook Album Cover Image

I'm trying to show the cover photos of a Facebook user's albums, but I am not having any luck. What I have so far is this: FB.api('/me/albums', function(response) { for(var i = ...
1
vote
1answer
75 views

How do you make certain Facebook permissions, like user_friends, required instead of optional?

I'm currently using the Facebook API for an app that requires a user's friends list for the app to be functional. My current scope (using the javascrkipt sdk) is: scope: ...
-1
votes
1answer
19 views

facebookConnectPlugin is not defined on second call (cordova 3.7, android)

I am building a cordova app, I integrated facebook sdk successfully using facebook plugin, able to call "facebookconnectplugin" only once without destroying app. I am calling "facebookconnectplugin" ...
-4
votes
0answers
19 views

how to post my web site content to face book page (custom page)

I have created one face book page for my web site . How to post the content from my site to face book page . Using java script . Thanks in advance . Regards, Raja.
1
vote
1answer
143 views

Facebook Login using PHP SDK - Recommends using Javascript

I've created a simple skeleton app using the PHP SDK for Facebook. This is how I am creating my Login URL: $login_url = $fb->getLoginUrl( array ( 'redirect_uri' => $okay_url, 'scope' ...
0
votes
1answer
42 views

logging referrer ID with Facebook page like

Is there any way to log the referrer Id for a Facebook page like action. Use Case: I have a site with FB like plugin integrated in few modules, which are referencing to a FB page. I want to log a ...
0
votes
1answer
29 views

Parsing the response object from sending a Facebook Invite Friend Request

I am working with the Facebook Javascript SDK and I am trying to set up a rewards system for sending invites to Friends. Basically, I want to give the user points for simply sending invites to their ...
0
votes
1answer
15 views

How to get facebook sign on approved for site before site is live?

Facebook Sign On for a site requires approval from FB. However, if we want to implement this before a particular site is "live", how do we do so? Is there a "light" way to implement sign on that ...
-1
votes
0answers
23 views

Facebook Javascript SDK login button not working

I just copied Facebook sample code to test their Javascript SDK in a Python/AppEngine app, however nothing appears on the page. Here is the code I'm using: <!DOCTYPE html> <html> ...
0
votes
1answer
33 views

Should I use Facebook Share Dialog or Feed Dialog? I'd need to redirect users to another page after succcessfull response

I'm making a very simple site where users can do a silly little test, and share the result to facebook. After visitor shares they should be redirected to another page on the site. I've gotten it ...
-3
votes
0answers
20 views

Facebook graph api

I want to explore the Facebook Graph API for an experimental purpose and not for any productive usage in a sample web app. Do we need any permissions from Facebook to do this or can I directly ...
0
votes
1answer
10 views

Variable is null after setting value on FB.api function

I'm trying to get the user locale and keep it on a variable. function myFunction() { var userLocale; FB.api( "/{userID}", function (response) { if (response && ...
-1
votes
1answer
26 views

How to Customize Facebook Canvas Multi-Friend Selector

I’ve been searching everywhere for an answer on this but I haven’t been able to find one, I hope someone here can help! :) I’m creating a Facebook Canvas game, and I'd like to design a multi-friend ...
0
votes
1answer
26 views

How to get App data from Graph API when user has access to the app

I want to know how i can access to my app data (title and description) when the user has access to it and get the localized values using the user locale. My code is this: var imageUrl = ...