Questions tagged as 'facebook-javascript-sdk'

0
answers

Why is the variable the same value for different instances?

I have the following code File 1: var fbuser_firstName; var FB = require('fb'); var User = function (sender) { FB.api('/' + sender, 'get', {access_token: process.env.PAGE_ACCESS_TOKEN}, function (response) { User.initFbProfileIn...
asked by 09.05.2016 / 02:58
1
answer

Execute JavaScript code when clicking link within DIV

I have this javascript code: <script type="text/javascript"> var domain = '<?=$x['host']?>'; var auto_surf = <?=($site['surf_type'] == 1 ? 0 : 1)?>; var sid = '<?=$sit['id']?>'; var hash = '<?=MD5(ran...
asked by 03.05.2016 / 17:50
0
answers

Facebook Authentication with Javascript

Hello, I have a problem while studying Facebook Login for JS. Testing the permissions, I went to my Facebook profile and removed the 'user_friends' permission. Upon entering the page again, it checks to see if I am logged in and checks the pe...
asked by 03.02.2016 / 14:43
0
answers

Open Facebook in your browser

I've created a Facebook application that briefly, at some point, uploads a photo to the visitor's album, and then uses var janela = window.open({urldafoto}) to open that photo in the album. So far so good. I needed to know when this wi...
asked by 11.03.2016 / 13:25
0
answers

Receive notification when a facebook comment is made in wordpress

I'm creating a blog in wordpress and want to make the facebook comments made on the post page generate a notification on the page administrator's facebook page. In an old blog, I used the Facebook Comments Notifier plugin and it was working...
asked by 29.07.2015 / 22:03
1
answer

Trusted credentials with Facebook Javascript SDK

I have a web system in which I capture the user id of Facebook and store it in the database for later use, I am currently calling via the SDK and the command by hidden field (low security method). Would you like to know if I can enter this in...
asked by 20.09.2017 / 16:32
1
answer

Create audio file, from URL

I need the messenger audio file, for use in the api Google Cloud Speech API. When an audio is received in the messenger, a url is generated that downloads this file in .mp4. How can I from this url retrieve the audio, and use it in the Google AP...
asked by 08.10.2016 / 01:04
1
answer

Set text in API share facebook

I have a script to share content on Facebook is working fine just wanted to add text that the system generates automatically when you click the share button. Example: IwantedthatwhereitsaysDizalgosobreisto…wasanalreadypredefinedtext.Isitpo...
asked by 09.03.2015 / 22:43
1
answer

How to return data from an event by Graph API

I'm starting to test integrations with Facebook on my site and trying to return information from an event using the code in API Documentation I get the following error: code: 104 message: "An access token is required to request this res...
asked by 12.07.2014 / 20:03
0
answers

Api facebook login does not return same email requesting field

My facebook api is not returning email field. I saw in a forum post giving the solution to this problem, requesting the field in api, but I did this and it does not work.    Login with facebook api does not return user email Interesting...
asked by 05.09.2018 / 20:51