javascript,facebook,facebook-graph-api,ember.jsRelated issues-Collection of common programming errors
Philipp Claßen
javascript coffeescript read-eval-print-loop
I have been experimenting with the Javascript haskell-js library, but I stumbled upon a strange behavior of the coffeescript REPL.With node, the following example works as expected:$ node require(‘haskell’); > [1,2,3].map(‘+1’); [ 2, 3, 4 ]But with coffeescript, it fails:$ coffee -v CoffeeScript version 1.6.1 $ coffee require ‘haskell’ [1,2,3].map(‘+1’) TypeError: +1 is not a function at Array.map (native) at repl:3:15 at REPLServer.replDefaults.eval (/usr/local/lib/node_modules/coffee-script
Andrew Thompson
java javascript swing security applet
First of all I’m aware that my question is same as in here. But that question did not helped me.I have self signed applet.jarsigner -verify sJSApplet.jar jar verified.Warning: This jar contains entries whose signer certificate will expire within six months.Applet’s purpose is to open MS Word document from LAN machine. So far I’ve tried opening using Desktop.open() and Runtime.exec(). With AccessController.doPrivileged and without. I always get java.security.AccessControlException: access denied.
Gohar
javascript asp.net-mvc validation datetime validator
I have a Custom Attribute for DateTime validation with given dateformat and also javascript validator which are provide me both client side and server side validation. But now I should change my datetime validation so that it would be performed according clients local DateTime format and I do not know how.I couldn’t find anything that help me.So please advise me how can I implement at least client side DateTime validation or how can I get client’s date format by javascript.
tonberry
javascript visual-c++ visual-studio-2012 windows-8 windows-runtime
I face a problem to compile windows 8 application which is create using visual studio 2012 windows runtime component project. I’m using html 5 , javascript and c++ to develop this application. But when I compile the project I’m getting error which is JavaScript runtime error: Error in the DLL.I don’t know how to fixed this problem and when i build this project I’m getting error like below:-Error 40 Loading assembly “D:\workspace\Test\apps\Test\windows8\native\Debug\WindowsRuntimeComponent1\Wi
Akke
javascript jquery jquery-ui dialog callback
I’m writing some form validation functions, and I’ve decided to go with jQueryUI for prompting the user because of flexibility.There is a slight problem tho. I want my functions to return an array which consists of a boolean and a string for my error reporting system. JQueryUI dialogs are asynchronous which means the browser won’t hang and wait for a return value as the native prompt() would.Here is some sample code:Validator function:function verifyTOS_PVM_v2() {verifyTOS_PVM_v2_callback = ”;i
raheel shan
javascript jquery knockout.js
I am trying to call a function on attr src but failing. Here is what i have tried.function FavoriteViewModel() {var self = thisself.FavoriteProfiles = ko.observableArray([])self.getRating = function(Rating){//here i want conditions and concat image pathreturn does nothing here}self.LoadData = function(){//run ajax and put its result in self.FavoriteProfilesself.FavoriteProfiles(Result)} self.LoadData() }When i run ajax this brings this result. Results are multiple i am only posting
Josh Unger
javascript internet-explorer canvas internet-explorer-8 easeljs
I am using EaselJS and want to allow for backwards compatibility with ExplorerCanvas.This should be possible using the following code (see here): createjs.createCanvas = function () { … return canvas implementation here … }However, If I put an alert in this function and run the code, the function is never run.How do I go about getting this to work?Edit:Here is a simplified example of the code I am using:<!DOCTYPE html> <html lang=’en’> <head><meta charset=’utf-8′ />&l
JoMo Apps
javascript android ios eclipse phonegap
I am developing an app for my work (social housing) and I want it to be able to allow the user to take a photo and attach it to an email so they can send it to us (pictures of repairs etc)I’m using Phonegap and Eclipse as I want the app to be cross platform but am testing in Android primarily at the moment. Is there a way to do this? I am currently using the code below with no avail. <script typr=”text/javascript” charset=”utf-8″>function camera(){navigator.camera.getPicture(onSuccess, onF
Dan
javascript ios uiwebview monotouch onerror
Here’s an answer for a similar question in Objective C but I’m not sure what’s the right way to translate it to MonoTouch.Basically, I want to be able to catch JavaScript errors and know at least filename and line number-unfortunately, window.onerror doesn’t give this crucial information.In particular, I’m not sure if I should expose a native library or if I can write this in pure MonoTouch.
The Dark Knight
java javascript security jsp jstl
I am in a bit of a pickle :I have a lot of values which i am setting in a bean in java and then i am getting them in javascript and jsp using scriplets like this :In My Bean.java :public void setListValue(String s) { listValue = s; } public String getListValue() { return listValue; } Now in my jsp(inside a javascript function) :input = $input({type:’hidden’,id:’ListVal’,name:’ListVal’, value: ‘<%= results.getListValue() %>’});Sometimes i am using the scriplet code to ret
cwgso
ios facebook dialog feed
I’d already implemented an App both on FB and iOS that published updates to the users timeline using the Feed Dialog. This was working as intended up until a few months ago, when most users started seeing the ‘An Error has Occurred. Please try again later’ page.I set out to update the FB SDK to the latest version and hopefully fix this issue. Initially I have had success posting stories with the basic tutorial app, but once I removed the native IOS FB login settings, the error screen re-appear
Hayaßusa
facebook ios6
I am implementing facebook posting in my app. And add some code to post something on facebook account. My code is as follows.- (void)publishStory {NSLog(@”publish story called …….”);[FBRequestConnectionstartWithGraphPath:@”me/feed”parameters:self.postParamsHTTPMethod:@”POST”completionHandler:^(FBRequestConnection *connection,id result,NSError *error) {NSString *alertText;if (error) {alertText = [NSString stringWithFormat:@”error: domain = %@, code = %d”,error.domain, error.code];} else {aler
istruble
android facebook facebook-graph-api
I created an app with user authentication in Facebook. But it throws me the following error when I minimize, resume, and then log out of Facebook.07-13 16:35:42.989: E/AndroidRuntime(23464): FATAL EXCEPTION: Thread-47 07-13 16:35:42.989: E/AndroidRuntime(23464): android.database.sqlite.SQLiteDiskIOException: error code 10: disk I/O error 07-13 16:35:42.989: E/AndroidRuntime(23464): at android.database.sqlite.SQLiteStatement.native_execute(Native Method) 07-13 16:35:42.989: E/AndroidRuntime(2
dakshbhatt21
android facebook facebook-android-sdk
I have changed my eclipse to another version after a sever crash. Now I can’t get my apps log to Facebook or post either a text or an image.I know how to generate the debug.keystore hash key, and my Keystore hash key which I export my apps using it. BTW I deleted my debug.keystore and generate a new one as a try to solve the problem, I failed.Here is the command used for debug.keystore:”C:\Program Files\Java\jre7\bin\keytool.exe” -exportcert -alias androiddebugkey -keystore C:\Users\Administrat
Vahur Roosimaa
android facebook api facebook-graph-api opengraph
I’m trying to get an Android app to post highscores to Facebook, similar to how Angry Birds on Facebook does (it get’s displayed on Timeline and shows up in the Ticker too). Keep in mind that this game runs only on Android and has no FB Canvas application. Currently the steps I take for posting the high scores are the following:Authenticate the user via FB when login buttons is pressed, request only publish_actions permissions – works Request the user id by calling “/me” via FB SDK and saving th
Paris Charilaou
php facebook api sdk
I get this error on random occasions:Fatal error: Uncaught CurlException: 3: No URL set! thrown in /****/****/***/****/facebook/facebook-client/base_facebook.php on line 905I am using the latest php sdk from the GIT repository (downloaded today!). The user is already logged in facebook when this happens.This behavior started 2 weeks ago out of the blue.What can be wrong?UPDATE: When I delete all cookies associated with the domain, the problem is resolved. I think it has to do something with fbm_
Peter Nolen
facebook ios6 facebook-ios-sdk
I have been converting my application from the old Facebook SDK to the new Facebook SDK 3.1 in order to use the iOS6 native functionality as well as other Facebook functionality, and I am having a problem that happens consistently on the simulator and rarely on the device. When I go to log into Facebook, instead of the app backgrounding and authenticating through Safari or the Facebook app, I get a modal window on top of my app for the login (I believe this started with iOS6, even before switchi
Mc Kevin
php facebook .htaccess curl
So I’m trying to integrate my app with facebook and I’m using the default example.php’s code as my index.php. I’ve changed the appID and appSecret to match my app’s id and secret, whenever I test the code on facebook, it will throw an exception namely UnhandledCurlException. Wraping the code with try and catch will only return 0 whenever I call the getUser() method.I’m aware that I could enable the curl extension on php.ini, but I can only find that on my localhost but not on the server(000webho
Ben Flynn
ios facebook login
I’m using the 3.1 Facebook SDK with iOS 6 Facebook set up in Settings and my app authorized.This executes flawlessly:[FBSession openActiveSessionWithReadPermissions:nil allowLoginUI:YES completionHandler:^(FBSession *fbSession, FBSessionState fbState, NSError *error) { … }However now when I try to get ‘me’ information I’m getting an error:com.facebook.sdk:ParsedJSONResponseKey = {body = {error = {code = 190;”error_subcode” = 463;message = “Error validating access token: Session has
shylendra
android facebook
I’m making an android application with facebook login. I’m calling the facebook login by following code in my Activity.Session.openActiveSession(this, true, new Session.StatusCallback() {// callback when session changes state@Overridepublic void call(Session session, SessionState state, Exception exception) {if (session.isOpened()) {// make request to the /me APIRequest.executeMeRequestAsync(session, new Request.GraphUserCallback() {// callback after Graph API response with user object@Overridep
istruble
android facebook facebook-graph-api
I created an app with user authentication in Facebook. But it throws me the following error when I minimize, resume, and then log out of Facebook.07-13 16:35:42.989: E/AndroidRuntime(23464): FATAL EXCEPTION: Thread-47 07-13 16:35:42.989: E/AndroidRuntime(23464): android.database.sqlite.SQLiteDiskIOException: error code 10: disk I/O error 07-13 16:35:42.989: E/AndroidRuntime(23464): at android.database.sqlite.SQLiteStatement.native_execute(Native Method) 07-13 16:35:42.989: E/AndroidRuntime(2
Vahur Roosimaa
android facebook api facebook-graph-api opengraph
I’m trying to get an Android app to post highscores to Facebook, similar to how Angry Birds on Facebook does (it get’s displayed on Timeline and shows up in the Ticker too). Keep in mind that this game runs only on Android and has no FB Canvas application. Currently the steps I take for posting the high scores are the following:Authenticate the user via FB when login buttons is pressed, request only publish_actions permissions – works Request the user id by calling “/me” via FB SDK and saving th
mykisscool
facebook facebook-graph-api facebook-apps
I’m in the process of developing a Contest and Promotion-related Facebook app and my intent is to to create a tab on my company’s page that will provide access to the app.Once their, users can nominate local companies for awards. Later on; once the nominations are in, users can vote for a winner.I’ve integrated Open Graph into my app so that I can take advantage of Object Types (Organization), Action Types (Nominate, Vote For), and Aggregations (Nominations). My main objective is to then trans
RealCasually
facebook-graph-api facebook-ios-sdk
When making app requests on Facebook using the iOS SDK, the developers guide requires that developers clear the request when the app is opened.Deleting RequestsWhen a user is directed to your app by clicking accepting a Requestyou must delete the request after it has been accepted. Requests arenot automatically deleted once they have been clicked, thus it is thedeveloper’s responsibility to clear them once they have been accepted.https://developers.facebook.com/docs/requests/#deletingIs there a
Augis
facebook facebook-graph-api coronasdk
I want to post a message to facebook from Corona SDK application,but it all the time fails to login. My steps:1. I have generated key for my Android app: app name is “myapp.APK”, package name is com.myapp (http://corona.techority.com/2011/09/24/how-to-generate-a-key-for-your-android-app/) 2. I have selected “Native Android App” in facebook and filled in folowing: “Android Package Name”: com.myapp “Android Class Name”: com.myapp.activity “Android Key Hash”: key hash which I have generated in ste
ChandreshKanetiya
objective-c facebook-graph-api ios7
I have use Facebook SDK Framework for post message on Facebook.I have used native facebook dialog for post message.NSString *msg = @”Sample message for posting…”; BOOL displayedNativeDialog = [FBDialogs presentOSIntegratedShareDialogModallyFrom:self initialText:msg images:nil urls:nil handler:^(FBOSIntegratedShareDialogResult result, NSError *error){if (!error){NSLog(@”result=%u”,result);if (result == 0) {UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@”Successfully posted” message:@”
shobhit
facebook facebook-graph-api
There are already several questions on StackOverflow ( Can you get a public Facebook pages feed using Graph API without asking a user to allow? Get public page statuses using Facebook Graph API without Access Token? )concerning my question: I need to get through the graph API the feeds of a public page on facebook.I followed the instructions but I always get:{“Error”: {“message”: “An access token is required to request this resource.”, “Type”: “OAuthException”, “code”: 104}}how can I fix this?
user983965
android facebook facebook-graph-api android-layout
I am trying to get to the app login screen on Facebook. When the activity is started, the screen shows a facebook loading page then disappears and the page is set to the R.layout.main.I must be missing the point here, but how do I get to the app login page for the user to login please.I have been following the tutorial based at https://developers.facebook.com/docs/mobile/android/build/#enablessoFYI – I have removed the APP_IDpackage com.example.facebook;import android.app.Activity; import androi
Arturo
php facebook facebook-graph-api notifications
I am trying to send a Facebook notification from my app using Graph API Explorer. So I have selected my app, POST, and entered this string after the “/”11093774316/notifications?access_token=430704346948156|HU0ygMtEX11HevODOjheGUikVKg&template=Hello&href=index.phpThe access string is what I get on the “Access token debugger” and I check it is ok.However, I get this error message: {“error”: {“message”: “(#15) This method must be called with an app access_token.”, “type”: “OAuthException”,
seriakillaz
facebook facebook-graph-api monotouch facebook-c#-sdk xamarin
When I try to build the sample of the monotouch-binding of the facebook API, I got the following error: Building: sample (Debug|iPhoneSimulator) Performing main compilation… /Developer/MonoTouch/usr/bin/smcs /noconfig “/out:/Users/kovacsd/devel/mozdulj/Libraries/monotouch-bindings/facebook/sample/bin/iPhoneSimulator/Debug/sample.exe” “/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll” “/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll” “/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.C
kingpin2k
javascript ember.js
I’m currently upgrading out Ember application to Ember 1.3.0 stable. I’m encountering the following issue in our Jasmine tests:Error: Assertion Failed: You must use Ember.set() to access this property (of [object Object])at new Error (native)at Error.Ember.Error (http://localhost:8888/assets/rake-ember.js?body=true:837:23)at Object.Ember.assert (http://localhost:8888/assets/rake-ember.js?body=true:79:13)at Object.Ember.MANDATORY_SETTER_FUNCTION [as keywords] (http://localhost:8888/assets/rake-em
commadelimited
ember.js ember-data
I’m working on building up unit tests for our Ember applications. The current set of tests I’m targeting are our Models. I’ve got a set of tests that work really well for Models based on Ember Data, but seem to fail when based on Ember.Object. Here are two examples:App.Person = DS.Model.extend({First: DS.attr(“string”),Last: DS.attr(“string”) });App.Person2 = Ember.Object.extend({First: null,Last: null });And the test which passes for DS.Model:it(‘has a valid attribute: First’, function() {var
ianstarz
ember.js uikeyboard collectionview
EDIT: SOLVED, was accidentally creating instead of extending the ember view. See answer below.I am creating a keyboard for a touchscreen device that does not have a native touchscreen keyboard in the browser (Google Chrome on an HP touchscreen, though correct me if I’m wrong. I’m open to an easier solution.)I’d like to split out the keyboard into separate rows to make the styling easier.keyboardView: Ember.CollectionView.create({elementId: ‘search-keyboard’,content: [[ ‘q’,’w’,’e’,’r’,’t’,’y’,’u
Martin
ember.js ember-data
I’m trying to set a default value of a property, depending on another property of the model being loaded.How do I trigger the setOthers method, after the model has loaded? The totalPoints property can change afterwards, and the user should also be able to change the others value, from the initial value set in the setOthers method.I have this User model:App.User = DS.Model.extend(# [ … ]competenceRatings: DS.attr(‘competenceRatings’) )Here’s the controller:App.UsersEditController = Ember.Object
suri
ember.js
I came across following issue while building ember from source, how can i fix this.$ bundle installFetching gem metadata from https://rubygems.org/…….Fetching gem metadata from https://rubygems.org/..Resolving dependencies…Using rake (10.1.0) Installing json (1.8.1)Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension./usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require’: cannot load such file — mkmf (LoadError)from /usr/lib
user1189762
ruby-on-rails rest backbone.js ember.js frontend
I already know that ember.js is a more heavy weight approach in contrast to backbone.js. I read a lot of articles about both.I am asking myself, which framework works easier as frontend for a rails rest backend. For backbone.js I saw different approaches to call a rest backend. For ember it seems that I have to include some more libraries like ‘data’ or ‘resources’. Why are there two libraries for this? So whats the better choice? There arent a lot of examples to connect the frontend with the ba
user510159
ember.js playframework-2.0 handlebars.js rhino precompile
I’m trying to write an SBT plugin for PlayFramework 2.1 which would precompile handlebars templates located in app/assets/templates. I will of course share this plugin when it is complete. I found this howto http://eng.netwallet.com/2012/04/25/emberhandlebars-template-precompilation-with-play/ which was a little outdated, but it was no problem adapting it for Play! 2.1.Then I tried to compile a simple template file, but SBT failed with the following:ember: processing template test[error] /…/te
jayturley
javascript ember.js ember-data
I’m using Ember v1.4.0 and Ember Data v1.0.0 beta 5. I am having trouble getting the DS.Store.filter() function to work. When I go to the #/orders route, I see my list of orders. But when I go to the route #/orders/created, the full list of orders is shown, no matter how I implement the filter function. In addition, when I edit the #/orders route and put a filter on it, it works on that route and on the #/orders/created route. Its like the model never gets changed in the child route. Any help wo
Helge Talvik Söderström
ember.js
Working hard on my Ember app here, and it’s going along fine. However, I’ve run into an issue of unexpected behaviour and I’m not sure regarding the best approach to this problem.The problem is that in a specific route, I want to render another route into another outlet. However, the other route that I render into the other outlet doesn’t retain it’s own model.If I do this:App.TestRoute = Ember.Route.extend({model: function() {return {heading: “Test”,testContent: “This is test.”}} });App.IndexRo
ptmoy2
ember.js ember-data ember-model
In my application, I have the common parent/child relationship in my route map.App.Router.map(function () {this.resource(‘strats’, {path: “/”}, function() {this.route(‘strat’, {path: “/strat/:strat_id”});}); });My understanding is that when Ember first enters the parent route, it calls find() to get all models, which generally triggers an Ajax call to the server. Then when Ember subsequently transitions to a child route, it first calls find(), followed by find(id). If I’m using a data layer wi
Web site is in building