facebook-javascript-sdk

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

╄→гoц情女王★ 提交于 2019-12-06 14:18:08
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 && response.post_id) { alert('Post was published.'); } else { alert('Post was not published.'); } } );

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

Deadly 提交于 2019-12-06 13:53:36
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 really frustrating to implement for the following reasons: By now, after reading a lot, I couldn't find

Cannot log into Facebook via ngFacebook on angularjs app

寵の児 提交于 2019-12-06 12:47:11
I'm trying to set up log in via ngFacebook and I am unable to log in to facebook. I cannot even get anything to console log after calling '$facebook.log()'. My angular app: 'use strict'; angular .module('fmcFrontendApp', [ 'ngAnimate', 'ngCookies', 'ngResource', 'ngRoute', 'ngSanitize', 'ngTouch', 'ngFacebook' ]) .config(function ($facebookProvider) { $facebookProvider.setAppId('///////////'); $facebookProvider.setCustomInit({ version: 'v2.2', channelUrl : '/index.html', xfbml : true }); $facebookProvider.setPermissions('email, public_profile'); }) .run(function() { (function(d, s, id) { var

How to publish Actions to Facebook Graph API with parameters in call URL

那年仲夏 提交于 2019-12-06 12:41:52
问题 To begin, Ive spent several hours looking for an answer and have come CLOSE but havent found a full answer. So Im trying to publish actions using Facebook's Graph API and want to send parameters in the URL when initially calling it with the Facebook Javascript SDK. Here is a call that WORKS: function postNewAction() { passString = '&object=http://mysite.com/appnamespace/object.php'; FB.api('/me/APP_NAMESPACE:ACTION' + passString,'post', function(response) { if (!response || response.error) {

Facebook returning empty array from /me/friends

十年热恋 提交于 2019-12-06 12:01:46
So I am use the 2.3 API Version trying to access the /me/friends list that returns all of my friends who are also using the app. Except, it always returns the following: { "data": [ ], "summary": { "total_count": 889 } } I have tried using the Graph Explorer as well as the JS Sdk right within the browser with no luck. I am requesting the user_friends permission and it is actually included by default. And yes, I have many friends who have been using our app. I debugged the token online via Facebook's debugger and concluded the token does indeed have that permission. NOTE: Our app isn't listed

Having issue with Firefox 8 for Mac: window.name is undefined

烈酒焚心 提交于 2019-12-06 11:56:29
I've been trying to configure the new Facebook Javascript API with my website, but I'm facing an issue with Firefox (working perfectly fine with Chrome and Safari, yet to test out on IE fully but have been informed of no issues). The issue is being pointed out in the beginning of Facebook's all.js file, with the message saying window.name is undefined if(!window.FB)window.FB={_apiKey:null,...return document.getElementById(a);}}; all.js (line 3) Hence, any subsequent accesses to the SDK using FB. results in an error stating FB is not defined [Break On This Error] FB.login(function(response) The

Facebook registration page - Invalid 'client_id' when not logged into Facebook

懵懂的女人 提交于 2019-12-06 11:35:25
I have made a Facebook registration form that works with custom fields and functions as I expect, EXCEPT when the user is not logged into facebook when they first visit the form. In this situation the form does not render on screen and the following error appears: Unable to load the registration form for this ID. You may have previously blocked this app on Facebook. Go to your Facebook privacy settings to unblock this app. (Error: Invalid 'client_id'.) Now I know already that this has been discussed on the site but the solutions offered elsewhere don't work for me and I really want this to

Read feed on a Facebook page without login in

早过忘川 提交于 2019-12-06 11:22:59
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 :( 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 format header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-cache"); header("Pragma: no

phonegap facebook plugin

烂漫一生 提交于 2019-12-06 10:36:40
I'm doing a project using phonegap 2.4 and the latest facebook plugin https://github.com/phonegap/phonegap-facebook-plugin my problem is with posting to the user wall feed, I'm able to authenticate the user, get all the proper events for that, etc. but when I'm try to post to a feed (I'm doing the ask for read first then write permissions sequence due a new api inside ios6 and have the publish permission for the user and also I have setup my facebook account on settings, ah and also I I'm using facebook sdk 3.1) the console just trough and error ***** Terminating app due to uncaught exception

How do I get back to the iPhone web app after having logged in with Facebook Connect?

泄露秘密 提交于 2019-12-06 10:29:28
问题 I have a mobile web site built using jQuery Mobile. I often run it in full screen/mobile web app mode on my iPhone (I have added the web app to my iPhone home screen). On one of the pages, the user is required to log in to Facebook using the Facebook Connect JavaScript API. If the user is not already logged in, this is done by clicking a login button. The event handler for this button looks like this: ("#fbLogin").click(function () { FB.login(handleStatusChange(response), { scope: "publish