FAQ Database Discussion Community


Posting And playing SWF videos in fb using Javascript SDK

wordpress,facebook,facebook-graph-api,flex,facebook-javascript-sdk
I am developing a WP plugin to post WP posts to FB. I am trying to post SWF videos generated from my site to FB using javascript SDK. The thumbnail,description link and all other things are get posted.But when I click the thumbanil it is not playing the video,instead redirecting...

facebook js sdk. How do I login with facebook, without the user actually login into facebook?

javascript,facebook,login,facebook-javascript-sdk,facebook-login
I am new to stackoverflow, so I hope that I ask the question correctly. For a website that I am working on, I have to implement login in using your facebook account. I have this working for the biggest part, since the user is able to login with using facebook...

Do I need Facebook PHP SDK?

facebook,facebook-javascript-sdk,facebook-php-sdk
I am trying to build a webpage that shows information only to allowed users and allows those users to modify that information. I want to use Facebook to authenticate the allowed users. I would have those users' Facebook IDs stored in a database and check a logging in user ID...

How is Facebook able to autoplay videos on mobile browsers

facebook,jquery-mobile,javascript-events,facebook-javascript-sdk,html5-video
I realize that many questions have been asked about autoplay videos on mobile devices but before my question is marked as a duplicate, I must say that I looked through a lot of those questions and answers and I have not found a satisfactory answer. Mostly, all of the answers...

Security issue with Facebook JS SDK

php,jquery,facebook,facebook-graph-api,facebook-javascript-sdk
I am using the facebook JS sdk to login a user. These are the steps that I follow:- 1) I use the FB.login(...) to get the details of the user. 2) Now, after receiving the details from Facebook, I send a POST request using jQuery's $.post(..) function to a php...

Facebook LogIn and Parse

android,facebook,parse.com,facebook-javascript-sdk
I've just added Facebook login to my app, I can retrieve the data I need. But I'm not completely sure what to do with it. My app already works with normal users to Parse.com (which I registered on a register screen that I have created in my app). But what...

Share on facebook and twitter without page referesh

javascript,facebook,twitter,facebook-javascript-sdk,share
I am very confused about sharing to facebook and twitter. I have a simple javascript game, in which the user answers questions and after answering 3 questions wrong, they are out of lives and have to share this on facebook or twitter to get another life and continue where they...

change facebook like button language without reloading page

javascript,facebook,facebook-javascript-sdk,reactjs
I'm using ReactJS to build my site and I've got a language toggle on it. I am toggling between English and French without reloading the page, just mounting a new set of reactjs components. One of my components has a Facebook LIKE button on it, but because the facebook-jssdk is...

Synchronize results of 2 facebook api calls

javascript,facebook-graph-api,facebook-javascript-sdk
I have a table which I want to populate from my JS. Data used for populating the table is achived from following calls: for(var i = 0; i < arr.length; ++i) { FB.api(arr[i].id, OnEventResponse); FB.api(arr[i].id + '/picture', {"redirect": false,"type": "large"}, OnPictureResponse); } Because it's in a for-loop I can't populate...

Facebook Like Box (Page plugin) not working

html,facebook,plugins,twitter-bootstrap-3,facebook-javascript-sdk
I've tried adding a facebook plugin to my page but it doesn't appear correctly. What i've done so far was going to the Facebook Developpers for the new Page Plugin, included correctly (i hope) the SDK, included the script and pasted the html code the generator gave me. But my...

Set “to” in iOS and Android when sending Facebook private message

facebook,facebook-javascript-sdk,facebook-ios-sdk,facebook-android-sdk
For my web version, I can easily use the Facebook JavaScript SDK to do this by set the "to" field as described here https://developers.facebook.com/docs/sharing/web#params However, for Android and iOS, it does not seems to have "to" https://developers.facebook.com/docs/android/share#message-dialog https://developers.facebook.com/docs/ios/share#message-dialog Anyone know if it is possible to set the receiver so the...

Get gender of invitable_friends in Facebook SDK

facebook,facebook-graph-api,facebook-javascript-sdk
I am developing a Facebook application for ladies out there where users can only send invites to other females. Is it possible to find out the gender from invitable_friends list (or any other way)?...

How does Facebook permissions review work on an existing Live site?

facebook,facebook-javascript-sdk
My client has a website that uses FB to retrieve the current user's photos. This had been working for the last few years until recently, which I think is due to FB now requiring permissions to be reviewed by them first. My client wants to hide the section of the...

how to post a status in a group using Facebook graph explorer? [closed]

javascript,c#,facebook,facebook-graph-api,facebook-javascript-sdk
Https://graph.facebook.com/v2.3/238155829716205 I want to post a status in open group what will be the query using facebook graph api thankyou ...

Cannot log into Facebook via ngFacebook on angularjs app

javascript,angularjs,facebook,facebook-javascript-sdk
I'm trying to set up log in via ngFacebook and I am unable to log in to facebook. I cannot even get anything to console log after calling '$facebook.log()'. My angular app: 'use strict'; angular .module('fmcFrontendApp', [ 'ngAnimate', 'ngCookies', 'ngResource', 'ngRoute', 'ngSanitize', 'ngTouch', 'ngFacebook' ]) .config(function ($facebookProvider) { $facebookProvider.setAppId('///////////'); $facebookProvider.setCustomInit({...

How to get user feeds from facebook using angular js.

javascript,angularjs,facebook,facebook-graph-api,facebook-javascript-sdk
I had referred many articles but It couldnt solve this issue. Im trying to get the user feeds from facebook.How can i get it. Here is my code: var newMod = angular.module('newapp', []); newMod.controller('mainCtrl', function ($scope) { window.fbAsyncInit = function () { //SDK loaded, initialize it FB.init({ appId: 'your app...

Angular Facebook service hits API call limit

javascript,angularjs,facebook,facebook-graph-api,facebook-javascript-sdk
I am trying to call my Facebook service within a ng-repeat but somehow the Facebook API call limit is hit very quickly. I have a service as so: angular.module('core').factory('Facebook', ['$q', function ($q) { return { getMutualFriends: function (fbUserId) { var deferred = $q.defer(); var path = "/" + fbUserId; FB.api(...

Facebook Open Graph Story Custom Actions Keep Getting Rejected - Advice Please?

facebook,facebook-graph-api,facebook-javascript-sdk,facebook-opengraph
Right, I know this is a question that has been asked over and over and over, but I have been researching, and reading Open Graph docs, and I am at a loss now. This is the 3rd time my app has been rejected, sigh. Here's the low down: We have...

Php perform action after Facebook Like

php,facebook-graph-api,facebook-javascript-sdk
I want to perform some actions after a user likes my fb page, this post was not really helpful. This is my code, it displays Like and Share buttons, I want to echo something after detecting a like. Any idea ? <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0];...

Checking Facebook login state in a webView always returns unknown

android,facebook,facebook-javascript-sdk
I am developing a webapp that is wrapped in a native app for both iOS and Android. This is done by simply displaying the webapp in a webView for both platforms. I am having issues with the Facebook login and the Android platform. Logging in to Facebook works via my...

Facebook - Fan page Tab & registration

php,facebook,facebook-javascript-sdk
I have a site that require a social registration and login so I have set the facebook app and integrated it with Laravel and Socialite. Now I need to allow users to visit the site and vote the images ( allowed only for registered user) in a facebook fun page...

Publishing in facebook page as admin in v2.3 Javascript api

javascript,facebook,facebook-graph-api,facebook-javascript-sdk
I try to post in fan page as admin but it does not work: it works but not as admin var wallPost = { access_token: token, message: 'asdasdasd' }; FB.api('/xxxxx/feed', 'post', wallPost, function(response) { console.log(response); }); This has an error: FB.api('/' + page_id, {fields: 'access_token'}, function(resp) { if(resp.access_token) { FB.api('/'...

Can an app post in a facebook group

facebook,facebook-graph-api,facebook-javascript-sdk,facebook-php-sdk
I want to learn how to make a facebook app, but I am not sure it is possible to do what I want. I know it is possible in an app to post messages on the user's wall. I want to know if it is also possible to post a...

Facebook Graph api me/posts and me/feed not getting receiving any wall posts

facebook,facebook-graph-api,facebook-javascript-sdk
Using me/posts and me/feed I am not able to get any wall posts at all(i.e something posted on my wall by others or vice versa). I've tried various accounts with the same results. Is this due to some changes on Facebook? Do you guys experience it too and what can...

How to merge two facebook graph api Data results (JSON)

javascript,json,facebook-graph-api,facebook-javascript-sdk
Since facebook graph can only return 100 user likes ("/me/likes?limit=100") I made a loop, which repeats until all likes are loaded. As a result I have a separate graph api result objects, and after the loop is finished I need to merge them into one. Below is a short array...

How do I integrate facebook login for my signin and signup

ruby-on-rails,session,facebook-javascript-sdk,facebook-login
I already have a user model and controller and a sessions controller. User can sign up and sign in from my app without facebook . However, I want to also integrate facebook login and make it work with the sign in and sign up, the user model, controller and the...

Weird Content of Facebook share/like button preview from angular app

angularjs,facebook-javascript-sdk,facebook-like,facebook-social-plugins
I have an issue with share/like button from Angular app. I finally made it working correctly with links but share/like preview if completely wrong. I tried XFBML.parse(), switching to html 5 mode, etc. There are two complete enigmas: 1. I got "Given URL is not allowed by the Application configuration..."...

React-native app and Facebook SDK

ios,facebook,facebook-graph-api,facebook-javascript-sdk,react-native
I successfully managed to create a native component that successfully logins a user into Facebook. So, in my react-native app, I've got the access token and the userId. Now, I'd like to use Facebook SDK (for example, the Graph API) to access to some basic infos (profile name, profile picture,...

Displaying Javascript Content In HTML Or Php Variable

php,html,ajax,facebook-javascript-sdk
I have javascript that gets the Facebook name of a user when they login on my file indir.php. However, I cannot get that name javascript variable to transform into a php variable or a <input type="hidden" name="name" value="" />. Currently, I can get the name using: <script> ...facebook stuff... function...

If I use passport login through facebook is there an additional step before using facebook graph api?

facebook-graph-api,facebook-javascript-sdk,passport.js
I am using passport to login user. If they have logged in using facebook. Does passport return all the information needed to use the facebook graph api? Is there something else I need to do before using the api?

Remove Facebook Login Button SDK after a logout

javascript,jquery,facebook,facebook-javascript-sdk,facebook-php-sdk
My site is using both PHP SDK to generate login button Javascript SDK to generate logout button. This is because I need login button in the server side so it needs to redirect to other location. Whereas the logout button needs to be in the application side since the server...

how to get users by query in facebook graph api

facebook,facebook-graph-api,facebook-javascript-sdk,facebook-php-sdk
In facebook UI when I type 'people who like bill gates and like a.r. rahman' in search box it giving users list who likes both bill and rahman. But how can I get these users through graph api.

Facebook Graph getattachment method returning “unknown method” error

python,facebook,facebook-graph-api,facebook-javascript-sdk
I am trying to write an application which can archive your Facebook messages and their attachments, something similar to the amazing tool https://github.com/bnvk/social-archiver, but i have a problem with non-image attachments, say a audio file for example. According to this View attachments in threads, the solution is the messaging.getattachment api...

ajax loading php with facebook-Java not working

javascript,php,ajax,facebook-javascript-sdk
I have some code on a main page (index.php) that calls a php script (access.php) with javascript, as seen below. The php (access.php) also has javascript but when I load it into the current page (index.php) then the javascript content in (access.php) is not working. Maybe this can't be done....

Inserting facebook share button on personal website

facebook,facebook-javascript-sdk,facebook-social-plugins,facebook-share
I want to put a button on my website that will open a popup for the user to share the url on its profile. I followed the steps shown here, after click on 'get code': 1. Include the Javascript SDK on your page once, ideally right after the opening <body>...

I cannot get user's informations in facebook api php

php,facebook,facebook-graph-api,facebook-javascript-sdk,facebook-php-sdk
I am using facebook api for PHP. i can get only basic information like username,fullname,link,id. i cannot get country,email,place..etc <?php session_start(); // added in v4.0.0 require_once 'autoload.php'; require_once( 'src/Facebook/FacebookSession.php'); require_once( 'src/Facebook/FacebookRequest.php' ); require_once( 'src/Facebook/FacebookResponse.php' ); require_once( 'src/Facebook/FacebookSDKException.php' ); require_once( 'src/Facebook/FacebookRequestException.php' ); require_once(...

POSTing an Array from a Facebook Graph API response by AJAX to a PHP script

php,arrays,ajax,facebook-graph-api,facebook-javascript-sdk
Hello_I’m making a Facebook Canvas App and I’m trying to get the Invite Friends process working. I have my multi-friend selector made, and it’s sending invites correctly, but I now want to reward the inviter whenever an invited person adds the app. I think the correct way to do this...

Confusing Javascript Nested Array from Facebook Graph API

javascript,arrays,facebook-graph-api,multidimensional-array,facebook-javascript-sdk
Hello_I’ve been stuck on a problem with my Javascript Array for over a week now, I just don’t know how to get it to work. I’m querying Facebook’s Graph API in order to retrieve an array of ID numbers (these are IDs of people who have sent an app request...

Get Facebook ID on invite game

facebook,facebook-javascript-sdk
I am trying to use the Facebook API to invite friends. But I need at the time you click invite, I receive the facebook id of the invited person. I followed this blog, but it does not delivery FBID. http://www.9lessons.info/2012/07/facebook-invite-friends-api.html...

Facebook share button doesn't seem to work in a Webmethod with Javascript and Ajax

javascript,asp.net,ajax,facebook,facebook-javascript-sdk
I'm trying to use Facebook share button on a list of photos where each photo has its own button with a different URL. Unfortunately I can't make this work. I get all the testing strings except the facebook button string. To test whether the facebook SDK works I removed the...

Upload multiple photos in batch to Facebook using Javascript SDK

javascript,facebook,facebook-javascript-sdk
I can upload single photos via URL to Facebook, but I'm having trouble doing it using batch. I'm getting the (#324) Requires Upload File uncaught exception. I'm ensuring the user is logged in and when I look at the batch payload (batchJson) it looks okay. To be clear, if I...

how to wait for the facebook javascript api respon using javascript or jquery

javascript,jquery,facebook,facebook-graph-api,facebook-javascript-sdk
I want my my postuserWall() function to wait for the FB.api response then it return true or false.but it is not waiting for the response. How can i get it to wait for the response here is my main function which is calling the postuserWall function the alert is showing...

How to return value in Meteor.JS from HTTP.call “GET”

javascript,ajax,http,meteor,facebook-javascript-sdk
I'm writing a meteor method, which should return a Facebook response for HTTP.call on graph api, but HTTP.call has only a callback function to show error/response, so I can't take this data outside, and Method can not return any value. Here's my method code: loadUserFBEvents: function () { var accessToken...

Facebook Page Plugin URL

facebook,facebook-graph-api,facebook-javascript-sdk
When using the Facebook Page Plugin code generator, it asks for Facebook Page URL. Whenever I put the correct URL in I get an error. For the life of me, what is the correct Facebook page URL? I'm just going to my Facebook home page and coping the URL and...

Google Analytics not tracking the events correctly

javascript,html,facebook,google-analytics,facebook-javascript-sdk
I'm using google analytics (analytics.js) to track a couple of buttons and facebook and twitter for social part but the problem is since the last Saturday that I configured the analytics code, can't see my events registered in my dashboard and it's strange because If I open the developers console...

Can not fetch Friend List using Facebook Graph API

javascript,facebook,facebook-graph-api,facebook-javascript-sdk
This is for the first time i am using Facebook Graph API. I need to get every friends name who is using my app.I tries a lot of methods available online but could not manage to pull friend list so far.I am unable to do this. Please help. Here is...