facebook-javascript-sdk

Facebook Auth Dialog: Developer warning concerning the use of “display” type “popup”

拥有回忆 提交于 2019-12-20 12:02:06
问题 starting today we receive developer warnings in the auth dialog with the following message: You are using a display type of 'popup' in a large browser window or tab. For a better user experience, show this dialog with our JavaScript SDK without specifying an explicit display type. The SDK will choose the best display type for each environment. Alternatively, set height and width on your window.open() call to properly size this dialog if you have special requirements precluding you from using

Facebook Auth Dialog: Developer warning concerning the use of “display” type “popup”

大憨熊 提交于 2019-12-20 12:01:56
问题 starting today we receive developer warnings in the auth dialog with the following message: You are using a display type of 'popup' in a large browser window or tab. For a better user experience, show this dialog with our JavaScript SDK without specifying an explicit display type. The SDK will choose the best display type for each environment. Alternatively, set height and width on your window.open() call to properly size this dialog if you have special requirements precluding you from using

how to properly inject Facebook JavaScript SDK to AngularJS controllers?

我与影子孤独终老i 提交于 2019-12-20 09:55:38
问题 I'm new to AnuglarJS and already built a small web-app with it, I would like to use the Facebook JavaScript SDK with it, but using best practices (dependency injecting to controllers, to maintain app structure and testability). I found this https://groups.google.com/forum/#!msg/angular/bAVx58yJyLE/Kz56Rw-cQREJ but its very confusing for someone new to this framework (modules, services and factories are not explained well IMHO). so, what is the proper way to use the Facebook SDK inside an

JS Facebook login iOS8

社会主义新天地 提交于 2019-12-20 07:17:41
问题 The login button on my facebook app has completely stopped working in iOS 8. I thought it was something I have done but when I take facebooks sample html from their site and apply it to my page it still doesnt work (my app id has been replaced with xxxxx). Basically the pop up window opens for facebook auth but never closes and returns to my app. Im just left with a blank which tab open: <!DOCTYPE html> <html> <head> <title>Facebook Login JavaScript Example</title> <meta charset="UTF-8"> <

Get Facebook fan page-id in page tab app using javascript

浪子不回头ぞ 提交于 2019-12-20 06:19:56
问题 Can I get Facebook fan page-id in page tab app without authorizing user using javascript? And also if I authorized user and after that I get signed_request which only contains ["algorithm","code","issued_at","user_id"] not "page" object. How can I get "page" object? I want to add Page tab app similar to Pinterest Page App , which initially get UserId / UserName and after that if we open that app then it will directly open according to inserted UserId / UserName . 回答1: No, you can not. The

Facebook Access Token [Javascript SDK]

旧城冷巷雨未停 提交于 2019-12-20 06:18:34
问题 I am writing Facebook login for my site.I am using Javascript Sdk,but I don't understand one thing. function fbLogin() { FB.login(function(response) { if (response.authResponse) { var token=response.authResponse.accessToken; FB.api('/me', function(response) { $.get('main/check_facebook_status/'+token,function(data) { if (data == "true") { $('#r_name').val(response.name); $('#r_username').val(response.username); $('#r_email').val(response.email); $('#fbid').val(response.id); $('#fbtoken').val

Facebook Javascript SDK: getLoginStatus getting no response

一笑奈何 提交于 2019-12-20 06:00:46
问题 As instructed by this page, I include the SDK snippet into my page, except that since I don't have any Facebook APP and I was just trying to build a custom share button on my page, I leave parameter "app-id" as null . To test if it is up and running, on console I execute FB.getLoginStatus(function(response){ console.log(response) }) while I am logged in FB. However, it returns undefined , which means there is no response. What is wrong? Is this because I didn't assign a "app-id"? 回答1: It

Asynchronous method in while loop with Graph API paged

a 夏天 提交于 2019-12-20 04:41:31
问题 I'm using facebook node sdk for node.js to get information from a facebook user such as their feed and friends, which is working fine. However I'm having an issue where the returned data is paged - I need to build something in recursive mode. Let me explain: FB.api('/me/feed?limit=5000', { access_token: token }, function(response) { // response is an object that could have as response.paging.next attribute }); Limit isn't working here, because it returns a max of 245 and returns paging object

FB.getLoginStatus suddenly stopped working on android browser

若如初见. 提交于 2019-12-20 02:34:54
问题 I used to use this code: FB.getLoginStatus(function(response) { .... } But all of a sudden its not working, The callback doesn't fire. Oddly though, only with the android native browser (tested 4.0, 4.1). It works on iPhone, iPad, Chrome & Safari, including Chrome for android. I can't figure out why but its not restricted to my app. For instance I this app built by Sencha is no longer working either (I used it to base my code off): http://www.sencha.com/apps/jog-with-friends actual app url

Facebook iframe FB.Canvas.setAutoGrow does not auto grow after initial load?

。_饼干妹妹 提交于 2019-12-19 03:46:06
问题 I have been building a facebook tab using html and css and facebooks javascript SDK. I having problems with the iframe resizing to the size of the content. I've managed to get it to work on initial load which is cool, using this below script... <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#"> - <div id="fb-root"></div> <script type="text/javascript"> window.fbAsyncInit = function() { FB.init({ appId : '00000000000000', // App ID channelUrl : '//www.mywebsite.com