Skip to content

Instantly share code, notes, and snippets.

@boarnoah
Created January 26, 2016 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boarnoah/366ebd76ff5c5ad3865e to your computer and use it in GitHub Desktop.
Save boarnoah/366ebd76ff5c5ad3865e to your computer and use it in GitHub Desktop.
TC-5838 - Code
tiapp.xml (condensed to relevant bits):
<ios>
<plist>
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<!-- Application ID same as the id value in the tiapp.xml file -->
<string>ca.appname.m</string>
<key>CFBundleURLSchemes</key>
<array>
<!-- Prefix the Facebook App ID with 'fb' -->
<string>fb111111111111</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<!-- Facebook App ID -->
<string>11111111111111</string>
<key>FacebookDisplayName</key>
<!-- Facebook App Name from developer.facebook.com -->
<string>FB Mobile App Name</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
</dict>
</plist>
<min-ios-ver>7.0</min-ios-ver>
</ios>
Javascript:
var fb = require('facebook');
fb.initialize();
fb.presentShareDialog({
link: 'https://appcelerator.com/',
title: 'great product',
description: 'Titanium is a great product',
picture: 'http://www.appcelerator.com/wp-content/uploads/scale_triangle1.png'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment