facebook-javascript-sdk

How to get birthday via Facebook API?

你说的曾经没有我的故事 提交于 2021-02-07 06:26:08
问题 I am setting up a Facebook login, and am successfully getting things like first_name , email , etc. However, I cannot seem to figure out how to get birthday. If I call for birthday as below, nothing returns. FB.api('/me', {fields: 'birthday'}, function(response) { console.log(JSON.stringify(response)); }) If I call user_birthday as below, I get this error: "error":{"message":"(#100) Tried accessing nonexisting field (user_birthday) FB.api('/me', {fields: 'user_birthday'}, function(response) {

The method FB.getLoginStatus can no longer be called from http pages

空扰寡人 提交于 2021-01-02 06:02:07
问题 So I tried to implement Facebook Login feature in my nodejs backend server. For testing purpose, I am trying client side to check the login and get access token. For that, I followed the docs and it says to use Javascript SDK and I followed the procedure, but there is a problem. window.fbAsyncInit = function() { FB.init({ appId : '##############', autoLogAppEvents : true, xfbml : true, version : 'v4.0' }) FB.getLoginStatus(function(response) { statusChangeCallback(response); }); } This is the

The method FB.getLoginStatus can no longer be called from http pages

≡放荡痞女 提交于 2021-01-02 06:01:05
问题 So I tried to implement Facebook Login feature in my nodejs backend server. For testing purpose, I am trying client side to check the login and get access token. For that, I followed the docs and it says to use Javascript SDK and I followed the procedure, but there is a problem. window.fbAsyncInit = function() { FB.init({ appId : '##############', autoLogAppEvents : true, xfbml : true, version : 'v4.0' }) FB.getLoginStatus(function(response) { statusChangeCallback(response); }); } This is the

Cordova Facebook Login - Sudden Failure on Oct 1st 2020

夙愿已清 提交于 2020-11-29 19:12:40
问题 We are using cordova-plugin-facebook4 to manage Facebook login within our Cordova apps. Facebook login suddenly started failing today (Oct 1st 2020). When calling the facebookConnectPlugin.login, it keeps returning this error: "Facebook error: Caught exception: (#200) Missing Permissions" It has been working fine all the while, and our app is authorized for those permissions. This is the code used: facebookConnectPlugin.login(["email","public_profile","user_birthday","user_location"],

Is there any API for fetching metadata of article using Facebook Open Graph Object Debugger?

こ雲淡風輕ζ 提交于 2020-08-12 02:59:53
问题 I want to fetch metadata of any web-page using Facebook Open Graph Object Debugger. We can get it from this URL: Open Graph Object Debugger Example: Open Graph Object Debugger for Google It will provide all the information related to that URL. Is there any way to get this information using API(in JSON format)? 回答1: Yes, via the API URL Object described here and in even more detail here. Note that you can issue a POST request to this URL to force a refresh. You can even get additional data

Is there any API for fetching metadata of article using Facebook Open Graph Object Debugger?

南笙酒味 提交于 2020-08-12 02:59:06
问题 I want to fetch metadata of any web-page using Facebook Open Graph Object Debugger. We can get it from this URL: Open Graph Object Debugger Example: Open Graph Object Debugger for Google It will provide all the information related to that URL. Is there any way to get this information using API(in JSON format)? 回答1: Yes, via the API URL Object described here and in even more detail here. Note that you can issue a POST request to this URL to force a refresh. You can even get additional data

Transparent image background become white after posting on facebook page by Graph-APi (Javascript)

一世执手 提交于 2020-08-10 19:47:36
问题 Strangely my transparent image background become white after posting it on facebook page through graph api. This is my original image which has transparent background: But after posting it on facebook I am getting this one which has white background: For getting the original image link, I am checking the height and width of the image object from response and then just getting the source from it. FB.api( '/'+photoID, 'GET', {"fields":"images"}, function(response) { if (!response || response

Transparent image background become white after posting on facebook page by Graph-APi (Javascript)

夙愿已清 提交于 2020-08-10 19:46:06
问题 Strangely my transparent image background become white after posting it on facebook page through graph api. This is my original image which has transparent background: But after posting it on facebook I am getting this one which has white background: For getting the original image link, I am checking the height and width of the image object from response and then just getting the source from it. FB.api( '/'+photoID, 'GET', {"fields":"images"}, function(response) { if (!response || response

How to get users email and fd id using facebook login with graph api

。_饼干妹妹 提交于 2020-07-18 06:22:11
问题 I am working for the first time with facebook API. From there documentation I found we can fetch name as below console.log(response.name); But How can I can also fetch email and fbid ? Thanks, Enamul <?php ?> <div id="fb-root"></div> <script> // Additional JS functions here window.fbAsyncInit = function() { FB.init({ appId : 'f', // App ID channelUrl : '//localhost/practices/phpTest/fblogin/login.php/channel.html', // Channel File status : true, // check login status cookie : true, // enable