Using environment variables / parameterizing config.xml

I’ve achieved that creating a template config.xml (the file is config.tpl.xml) and a before_prepare cordova hook to replace the variables in the template with the correct values and save the generated content in config.xml. The cordova hook uses the npm package es6-template-strings: npm install es6-template-strings –save-dev The hook is: #!/usr/bin/env node var fs = require(‘fs’); … Read more

Post on Facebook wall using Facebook Android SDK without opening dialog box

i applied following code and could successfully posted my message on wall. public void postOnWall(String msg) { Log.d(“Tests”, “Testing graph API wall post”); try { String response = mFacebook.request(“me”); Bundle parameters = new Bundle(); parameters.putString(“message”, msg); parameters.putString(“description”, “test test test”); response = mFacebook.request(“me/feed”, parameters, “POST”); Log.d(“Tests”, “got response: ” + response); if (response == null … Read more

Can you get a public Facebook page’s feed using Graph API without asking a user to allow?

If you’re anything like me your clients won’t want a standard Facebook likebox plugin, they’ll want it all styled and customised their own way. You don’t need to spend all day going round the official documentation wondering if any of it applies to you for something simple like this, it’s quite easy. The confusion arises … Read more

How to open fb and instagram app by tapping on button in Swift

Update for Swift 4 and iOS 10+ OK, there are two easy steps to achieve this in Swift 3: First, you have to modify Info.plist to list instagram and facebook with LSApplicationQueriesSchemes. Simply open Info.plist as a Source Code, and paste this: <key>LSApplicationQueriesSchemes</key> <array> <string>instagram</string> <string>fb</string> </array> After that, you can open instagram and facebook … Read more

The app references non-public selector in id (Facebook SDK iOS)

This problem happens because of the Facebook SDK for iOS. Application Loader forbids the use of the variable “id” from any FBGraphUser related class (maybe others variables too, didn’t test) – e.g. : id<FBGraphUser> friend id<FBGraphUserExtraFields>user Facebook is informed about this problem as of january 2013 : Bug Report The workaround for the moment is … Read more