Created
January 26, 2016 21:52
-
-
Save boarnoah/366ebd76ff5c5ad3865e to your computer and use it in GitHub Desktop.
TC-5838 - Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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