facebook-javascript-sdk

How to retrieve all posts of a user via Facebook Graph API using promises and recursion?

时光总嘲笑我的痴心妄想 提交于 2019-12-08 02:56:32
问题 I am currently developing a web app which uses the Facebook Graph API. What I would like to achieve is to get all posts of a user. However, this is not that easy since I have to paginate the results. At the moment I am struggeling with promises. What I try to achieve is to fill an array with the post objects. Therefore I use promises and recursion which does not work as expected. My code currently looks as follows: // Here I retrieve the user with his or her posts, // just the first 25 due to

A simple and up-to-date way to implement Facebook login in a Django app

老子叫甜甜 提交于 2019-12-07 23:11:48
问题 This issue is very common in stackoverflow, and there's a lot of different questions and answers about it, yet I couldn't find exactly what I need. First, I'd like to define exactly what I need: the option to let users log in to my app using their Facebook credentials. The app will save a matching classic Django user. I will only need to use the user's profile picture and to make sure that each time the same Facebook user will be related to the matching Django user. Unfortunately, I find it

Feed Dialog - “An error occurred. Please try again later”

冷暖自知 提交于 2019-12-07 22:51:24
问题 I am using the following code to post into users wall.I took this code from developer.facebook. But getting error like "An error occurred. Please try again later" while opening the dialog. 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" }, function(response) { if (response &&

Read feed on a Facebook page without login in

两盒软妹~` 提交于 2019-12-07 22:30:50
问题 Is it possible to create a web site and, with JavaScript, read the feed from a Facebook page and display it to my sites visitor without them having to login, or even have Facebook for that matter. I'm getting lost in the Facebook documentations :( 回答1: Thanks to @mch here commes version that uses php as a proxy to read a Facebook feed with JavaScript. Place a file called proxy.php on your server and add this code: <?php // always add this header to ensure the JSON is output in the correct

Google Chrome Frame and Facebook Javascript SDK - Cannot login

拥有回忆 提交于 2019-12-07 22:14:52
问题 On the example below i have an html page with the javascript code needed to login to facebook. On the i have the Google Chrome Frame meta tag that makes the page run with google chrome frame. If you open this page with any browser the finish() callback runs normally. If you open it with Google Chrome Frame it never fires. So this means that every Facebook App that tries to login to gather user data cannot login. This happens if the page is opened with google frame. But even if i remove the

how to detect after FB authentication and before FB authorization

ε祈祈猫儿з 提交于 2019-12-07 17:23:15
问题 In my MVC application, I have below code in JQuery to check if user is connected to Facebook app or not FB.login(function (response) { switch (response.status) { case "connected": case "unknown": break; } }, { scope: "@MyPermissions" }); Now, when I do FB login through my app, it authenticates and immediately starts FB app authorization and finally it comes to Connected case, when authorization is done. My Question is : Can I detect when Facebook authentication in done and before

How to implement facebook comment plugin in Android

ぃ、小莉子 提交于 2019-12-07 16:48:51
问题 How to implement Facebook comments plugin in Android, which allows users to post comments to their wall as shown in the image given below ? 回答1: maybe this is not what you looking for but i found few ideas that you could start rolling from like there is a Graph API Facebook social plugin on android or in a WebView Android unable to implement facebook comment in a webview due to default browser Edit: Should work if you set proper domain and path that already has comments. Haven't checked how

Facebook JS SDK: Check permissions before Login PopUp

馋奶兔 提交于 2019-12-07 11:59:05
问题 I want to check permissions of a logged in user before presenting the iframe login to request extended perms, but the iframe popup gets blocked by the browser (ff, chrome tested). I want to avoid this and i'm pretty certain its because the results of the js functions are 'nested' - my js cleverness is limited so excuse me. I'm guessing that if I can keep everything in the original function without passing down the results the browsers would still see the login iframe as 'user initiated' and

creating event via facebook graph api

旧时模样 提交于 2019-12-07 10:32:53
问题 Is there any way to create facebook event via code (as of today), referred to the documentation : for v2.0 for v1.0 Publishing was possible in v1.0 but not in v2.0. Is there legacy API support which I can use to create facebook events ? Any help appreciated. 回答1: If your app is a Graph API v2.0 app (created after April 30th 2014), you don't have the possibility to create events anymore via the Graph API. If your app is v1.0, the possbility to create events will vanish on May 1st 2015. 来源:

Facebook feed dialog not working

旧街凉风 提交于 2019-12-07 08:10:56
问题 I am trying to get the Facebook Feed dialog to work at a test site but I keep getting the same error message: "An error occurred with [app_name]. Please try again later.". When I look at the documentation I realize that the example in the documentation doesn't work either. Have tried a number of different solutions. Here is my test code: <html xmlns:fb="https://www.facebook.com/2008/fbml"> <body> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { // init the FB JS SDK FB.init