forked from phonegap-build/FacebookConnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
67 lines (53 loc) · 2.36 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="org.apache.cordova.facebookconnect"
version="0.4.0">
<name>Facebook Connect</name>
<description>
<p>This is the official plugin for Facebook in Apache Cordova/PhoneGap!</p>
<p>The Facebook plugin for Apache Cordova allows you to use the same JavaScript code in your
Cordova application as you use in your web application. However, unlike in the browser, the
Cordova application will use the native Facebook app to perform Single Sign On for the user.
If this is not possible then the sign on will degrade gracefully using the standard dialog
based authentication.</p>
</description>
<license>Apache 2.0</license>
<asset src="www/cdv-plugin-fb-connect.js" target="cdv-plugin-fb-connect.js" />
<asset src="www/facebook-js-sdk.js" target="facebook-js-sdk.js" />
<config-file target="config.xml" parent="/*">
<access origin="https://m.facebook.com" />
<access origin="https://graph.facebook.com" />
<access origin="https://api.facebook.com" />
<access origin="https://*.fbcdn.net" />
<access origin="https://*.akamaihd.net" />
</config-file>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="org.apache.cordova.facebook.Connect">
<param name="ios-package" value="FacebookConnectPlugin" />
</feature>
</config-file>
<header-file src="src/ios/FacebookConnectPlugin.h" />
<source-file src="src/ios/FacebookConnectPlugin.m" />
<config-file target="*-Info.plist" parent="FacebookAppID">
<string>$APP_ID</string>
</config-file>
<config-file target="*-Info.plist" parent="FacebookDisplayName">
<string>$APP_NAME</string>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb$APP_ID</string>
</array>
</dict>
</array>
</config-file>
</platform>
</plugin>