facebook-javascript-sdk

Facebook URL Debug: Sorry, something went wrong. We're working on getting this fixed as soon as we can

守給你的承諾、 提交于 2020-01-03 10:05:13
问题 https://developers.facebook.com/tools/debug Does anyone know why "some" URLS get this error and others do not? Error: Sorry, something went wrong. We're working on getting this fixed as soon as we can. I apologize for the lack of detail on this. I can't post a link as of yet but hoping someone has experienced this issue and found a resolution. Paging through the FB help pages directed me to here as well and it seems difficult to find the right place to report the problem directly to FB. I'm

Can Facebook JS SDK work with Phonegap / Cordova?

扶醉桌前 提交于 2020-01-03 07:21:10
问题 I have Senscha 2.0 mobile application which I want to build using latest phonegap (cordova). I want to add facebook login functionality. I found three options: Use ChildBrowser approach Use InAppBrowser. Use cordova facebook plugin I decided to go with the second one. I have problem with domain in FB app settings (Mobile Site URL). I typed one of my domains there, but when building app using Cordova in xCode, facebook response with an error, because obviously phonegap / cordova doesn't "use"

Facebook Requests ID(s) retrieve and delete

倾然丶 夕夏残阳落幕 提交于 2020-01-03 04:42:08
问题 So I'm developing a small web app, that implements the Requests Dialog(User-to-User) . I'm able to send an invite and also successfully to save data as request id and user id. But when the user gets redirected to my app, after clicking on the request, i can't retrieve request id as shown here: https://developers.facebook.com/docs/requests/#deleting and then delete it. But i see the request id in the address bar of the browser and it looks like this: http://apps.facebook.com/myownapp/?fb

Facebook Messenger Extension Error: 2071010

断了今生、忘了曾经 提交于 2020-01-03 02:42:06
问题 I am developing a chatbot for messenger platform using nodejs deployed on heroku. I am trying to get the user id in the webview. I have set the messenger extension field to true, whitelisted my domain, using latest updated version android app and also since now webview support the web browser, I am also viewing it in safari browser. The messenger sdk is loading perfectly. I the check whether browser is supported or not which I get as result->true. Still I am facing problem getting the user id

Using firebase auth token to make graph api calls using JS SDK

爱⌒轻易说出口 提交于 2020-01-03 01:21:12
问题 I currently have a Facebook app written with app that uses firebase to authenticate and login to my app. I am getting a access token with the firebase auth. I wanted to use this token to make graph api calls like FB.api( '/me/albums', 'GET', {}, function(response) { // Insert your code here console.log(response); console.log(token); } ); I am following the documentation on firebase to make the authentication. The user is successfully created on firebase the user has given permission for photo

Facebook returning empty array from /me/friends

微笑、不失礼 提交于 2020-01-02 09:27:13
问题 So I am use the 2.3 API Version trying to access the /me/friends list that returns all of my friends who are also using the app. Except, it always returns the following: { "data": [ ], "summary": { "total_count": 889 } } I have tried using the Graph Explorer as well as the JS Sdk right within the browser with no luck. I am requesting the user_friends permission and it is actually included by default. And yes, I have many friends who have been using our app. I debugged the token online via

JS SDK getLoginStatus doesn't return userID nor signedRequest

别来无恙 提交于 2020-01-02 07:28:50
问题 I'm using PhoneGap/Cordova with the facebook plugin. Everything seems to work except for getLoginStatus who is not working as defined here and here. When called, it returns some data, but not all: it doesn't return userID nor signedRequest. Here is the code: FB.getLoginStatus(function(response) { if (response.status == 'connected') { var fb_uid = response.authResponse.userID; var fb_signedRequest = response.authResponse.signedRequest; alert('logged in'); } else { alert('not logged in'); } });

Uncaught TypeError: Cannot read property 'name' of undefined

。_饼干妹妹 提交于 2020-01-02 01:05:22
问题 I tried to fetch data using facebook api into form inputs. Now, everything went just fine until I tried to also fetch the location of the current user. If the current user have shared his location (Where he is living), then I get no problems. However, if the user hasn't shared his location on facebook, I am getting an error: Uncaught TypeError: Cannot read property 'name' of undefined Here is the code I've been using. If you have any idea how to solve it, please comment here :) <div id="fb

Trying to setup facebook login : you must have a valid contact email specified to make this app available to all users

末鹿安然 提交于 2020-01-02 00:49:11
问题 I am trying to set up facebook login on my website. Website Url MatchMaherFriend.com But I am getting the following error when I am trying to make it live in the apps Status & Review section. you must have a valid contact email specified to make this app available to all users I have set my email in App Details section and also in setting. Still the button is disabled. Need help here Thanks 回答1: You must fill the "Contact Email". This form is at: Settings -> Basic -> Contact Email 来源: https:/

FB.login not working in mobile browsers

依然范特西╮ 提交于 2020-01-02 00:33:09
问题 This is not native solution, just responsive web site.. The problem is, that FB.login simply doesn't do anything. The same goes for FB.ui methods.. i call fb init in head (but also tried in body with same results..) like this: <script type="text/javascript"> FB.init({ appId: '{$app_id}', status: true, cookie: true, xfbml: true, channelUrl: 'https://www.nottyfly.com/channel.php', oauth: true }); When user clicks fb login button, the code is like this: function fbLogin(){ FB.login(function