facebook-javascript-sdk

Facebook Canvas setAutoGrow grows forever in IE

我的未来我决定 提交于 2020-01-15 06:04:07
问题 I am seeing a weird issue in Internet Explorer 9 on my Facebook pagetab when I have setAutoGrow to true. The height grows continuously without end. This is only happening in Internet Explorer for me. Tested with Chrome and Firefox as well. An example can be found at https://www.facebook.com/GunSweeps/app_480125662005248 Any ideas on what could be the cause? I read another thread on here that suggested it was html, body being set to 100%, and another which said a top-margin was the cause. I'm

Facebook Canvas setAutoGrow grows forever in IE

故事扮演 提交于 2020-01-15 06:04:06
问题 I am seeing a weird issue in Internet Explorer 9 on my Facebook pagetab when I have setAutoGrow to true. The height grows continuously without end. This is only happening in Internet Explorer for me. Tested with Chrome and Firefox as well. An example can be found at https://www.facebook.com/GunSweeps/app_480125662005248 Any ideas on what could be the cause? I read another thread on here that suggested it was html, body being set to 100%, and another which said a top-margin was the cause. I'm

facebook long term token “(#200) User must have accepted TOS”

江枫思渺然 提交于 2020-01-15 04:58:09
问题 From what I've seen no one as given a good answer to this question about using a long term token to publish contents in a Facebook page. So, I've checked: My user as permissions to post to that page My APP as requested enough permissions to publish to the page I've used the page temporary token to request the long term token to publish to the page I've got the page temporary token with this GET: var obj; FB.api("/me/accounts", function (response) { if (response && !response.error) { obj =

facebook application, dialogue to publish on user's wall, using javascript api, pop-up blocked in browsers

百般思念 提交于 2020-01-15 01:40:25
问题 i am using JS-API to generate a dialogue which asks for permission to publish the status message generated by my Application. given below is the screenshot of what i am talking about: here is the code: FB.ui( { method: 'feed', name: 'Facebook Dialogs', link: 'http://developers.facebook.com/docs/reference/dialogs/', picture: 'http://fbrell.com/f8.jpg', caption: 'Reference Documentation', description: 'Dialogs provide a simple, consistent interface for applications to interface with users.',

facebook application, dialogue to publish on user's wall, using javascript api, pop-up blocked in browsers

允我心安 提交于 2020-01-15 01:40:14
问题 i am using JS-API to generate a dialogue which asks for permission to publish the status message generated by my Application. given below is the screenshot of what i am talking about: here is the code: FB.ui( { method: 'feed', name: 'Facebook Dialogs', link: 'http://developers.facebook.com/docs/reference/dialogs/', picture: 'http://fbrell.com/f8.jpg', caption: 'Reference Documentation', description: 'Dialogs provide a simple, consistent interface for applications to interface with users.',

Using parses Facebook login api, results in current user null

非 Y 不嫁゛ 提交于 2020-01-14 13:37:11
问题 I am using parse to crate a simple demo site that allows users to login/signup using their Facebook account. the login returns success, i also get correct user name i also see the database get populated with the facebook acount data but back at app.js: Parse.User.current() is null Jvascript on client side (index.html) <script> // Initialize Parse Parse.initialize("zzzzzzzzzzzzzzzzzzzzz", "zzzzzzzzzzzzzzzzzzzzzzzz"); window.fbAsyncInit = function() { Parse.FacebookUtils.init({ // this line

Retrieving value from javascript callback function

这一生的挚爱 提交于 2020-01-14 05:00:09
问题 var display_welcome = function(){ var fb_login_button = jQuery('#fb_login_button'); var fb_welcome = jQuery('#fb_welcome'); var name = ''; FB.api('/me',function(response){ console.log(response); name = response.first_name; }); fb_login_button.css('display', 'none'); fb_welcome.html('<span>Welcome, ' + name + '</span>'); fb_welcome.css('display', 'block'); }; This function is called when a user logs into Facebook from a website. The goal is to display a welcome message to the user with the

Why doesn't FB.login delete the logout cookie?

僤鯓⒐⒋嵵緔 提交于 2020-01-13 20:37:01
问题 I have a problem with Facebook authentication logic: On home page load, I call getLoginStatus() and if I get "connected" , I redirect the user to his account page. If not, the user can click the login button that calls FB.login() . If the user is logged in and then navigates back to home page (full page load), getLoginStatus() there returns "connected" as expected and user gets bounced back to account page. However, when the logged in user calls FB.logout() and repeats steps 1-2, the 2nd step

Does the Facebook API allow for automated changes to old post visibility?

前提是你 提交于 2020-01-12 13:00:31
问题 In other words, is there an API that would allow a Facebook user to change their posts (through a 3rd party app), which are older than a specified date, from being visible to the list "Friends" to another one such as "Only Me" or "Close Friends"? People are increasingly adding their professional and acquaintance contacts as Facebook friends. It makes sense to limit the visibility of your posts — to cater to different audiences. Going forward, that's easy as Facebook provides ample controls:

Messenger Extensions Javascript SDK Error 2071011

邮差的信 提交于 2020-01-12 02:26:51
问题 I'm trying to create a Messenger Web View (https://developers.facebook.com/docs/messenger-platform/messenger-extension) by using the Messenger Extensions Javascript SDK. The page opened by the Web View has the following JS code <script> (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.com/en_US/messenger.Extensions.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script