Community Questions & Answers

Facebook Graph API question.

I'm new to Facebook API. I ran the sample in the API doc, so it gives me a big json string on the alert. Does any one have a sample code to get those values one by one? eg usernamer, email ect. I assume i need to decode the json string in a loop to get...

Facebook Module Issue

I updated titanium to the latest version (3.4.1.201410281727) and am now having a problem with the facebook module. It seems to function fine on iOS but I get the following error when trying to run the app on android. ~~~ 11-20 20:55:18.631:...

facebook hangs when i try to log in

when i run fb.authorize, the little facebook screen pops up and asks me for my email and password. when i give that and Log In, the timer gif shows... and then nothing. Eventually it must time out, and it brings me back to the log in page. This was all...

Measure App Installs through Facebook Ads

I currently promote my app using facebook advertising. Though this is working i have no way of knowing how many people are actually downloading and installing my app. Looking in the facebook...

Facebook Module iOS sso problem

I have a problem with login with facebook in my Titanium app for iOS. I'm using Titanium SDK 3.4.0. If I set forceDialogAuth = true, everything works. If I set forceDialogAuth = false but I have not stored account information in iOS settings, it works with...

TIP: Facebook Graph friends sort

Facebook GRAPH API currently does not allow you to sort your friend's by last name. A HUGE pain in the... Below is how I did it manually. ~~~ function sortByName(a, b) { //notice how I am sorting by last_name which is a special field var x =...

Showing no status message via fb query

WHat's wrong with below code ? pic and name are no problem but why status can't get ? ~~~ var tableView = Ti.UI.createTableView({top:60,minRowHeight:100}); win.add(tableView); runQuery(); function runQuery() { b1.title = 'Loading...'; // run...

Android + Facebookmodule not working

Hey, i am using the Facebook-Module from Appcelerator and trying to build a login with Facebook - but regardless i am trying - it doesn't work ... Setup: Facebook.appid = "XXXXXX"; Facebook.permissions = ['publish_actions', 'email',...

Facebook publishInstall

I'm using Titanium 3.1 with the new facebook module. Facebook has the function (and similar for android): ~~~ [FBSettings publishInstall:@"appid"]; ~~~ To track mobile installs. I have used this in a native project and it worked great. In that...

facebook post unsuccessful

Hi I'm using titanium sdk 3.2.3 and have added the facebook module to my android project. I sam trying to allow my app to make a post to facebook on a user's behalf once permissions have been granted. I have used this code before in previous apps but now,...

Titanium com.facebook.sdk error 5

Hi, I have some code trying to post a message and a photo to Facebook after user has been authorized in my app. I was able to post a status with no issue but doing this with photos gives me the com.facebook.sdk error 5 alert. here's some code: ~~~ var fb...

Facebook log in on iOS 8 seems to be broken

The following code: ~~~ var fbmod = require('facebook'); fbmod.appid = 1376404972593019; fbmod.permissions = ['read_stream']; fbmod.authorize(); fbmod.addEventListener("login",function(e){ fbmod.reauthorize("email",...

com-facebook-sdk-error-5 login error

I am having trouble logging into facebook from a specific device using a username and password. I get the error: [10:12:25] iPhone mc_mobile_tunnel[1672] <Notice>: (Note ) MC: mc_mobile_tunnel shutting down. <Warning>: Error: HTTP status...

Facebook authentication module and Alloy

Loaded the module, added the tiapp.XML code with property. alloy.js ~~~ Alloy.Globals.Facebook = require('facebook'); ~~~ index.js ~~~ // Don't forget to set your appid and requested permissions, else the login button // won't be effective. var fb =...

Modules.Facebook is missing publishInstall()

According to the [docs](http://docs.appcelerator.com/titanium/3.0/#!/api/Modules.Facebook-method-publishInstall), the built-in Facebook module for Titanium 3.1+ has a method called `publishInstall()`. However, I am using version 3.3.0.GA and this method...

Image upload to Facebook (nothing's happening)

Hi, trying to upload an image to Facebook, nothing seems to be happening: I have confirmed that the image is saving out to a blob (in case anyone is wondering) ~~~ // get facebook integration in var fb = require('facebook'); fb.appid = <my app id,...

Connect user to fb

i got a question! i've made an app for ios and android with Titanium Users can register and login with email or facebook, and all work great I got a view called fb friends where fb friends who got my app is listed, but when you are logged in with e-mail i...

Facebook module's login event not firing

Just as the title suggests, the Facebook module's login event isn't firing. Works in the simulator however the simulator doesn't appear to be using the iOS 6 built-in Facebook functionality. Here's an example of the code I'm using: ~~~ if...

Showing 1-50 of 1,050 1 2 3 4 5 621