Skip to content

Commit d3654f1

Browse files
committed
facebookapi v18.0.0
1 parent 925db52 commit d3654f1

File tree

113 files changed

+244
-117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+244
-117
lines changed

docs/facebookapi/changelog.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
###### 2025.01.16 [v18.0.0]
2+
3+
```
4+
## Major update
5+
6+
In this update we have moved all the extensions to use the newer gradle dependencies process.
7+
8+
See the migration guide: https://docs.airnativeextensions.com/docs/facebookapi/migrating-to-18.0
9+
10+
11+
feat(android): update to use new gradle dependencies (resolves https://github.com/distriqt/ANE-FacebookAPI/issues/386, resolves https://github.com/airsdk/apm/issues/214, https://github.com/airsdk/apm/issues/213)
12+
feat(android): update facebook sdk v17.0.1
13+
feat(ios): update facebook sdk v18.0.0
14+
```
15+
116
###### 2024.05.17 [v17.0.0]
217

318
```

docs/facebookapi/migrating-to-version-10.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
2-
title: Migrating to Version 10
3-
sidebar_label: Migrating to Version 10
2+
title: Migrating to v10
43
---
54

65
Version 10 of the FacebookAPI brings a major update to version 13 of the Facebook SDK.
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
---
2+
title: Migrating to v18.0
3+
---
4+
5+
import Tabs from '@theme/Tabs'
6+
import TabItem from '@theme/TabItem'
7+
8+
9+
This latest release brings a number of updates to the extension particularly around the Android integration.
10+
11+
The Android implementation has been updated to v17.0.1 and the iOS implementation has been updated to v18.0.0.
12+
This should bring a range of bug fixes and improvements however the implementation remains largely unchanged.
13+
The main change is around the integration of the extension into your application as we have moved to using gradle dependencies within our extensions.
14+
15+
16+
## Android Integration
17+
18+
### Gradle Dependencies
19+
20+
We have moved to using gradle dependencies within our extensions which will improve dependency resolution, reduce update times and improve compatibility with other extensions.
21+
22+
This also reduces the amount of work required to manually integrate the extensions, reducing the additions to the manifest in your application descriptor.
23+
24+
We highly recommend using the [apm](https://airnativeextensions.com/docs/using-apm) tool to manage the integration of the extensions in your application and to generate your application descriptor:
25+
26+
```bash
27+
apm update
28+
apm generate app-descriptor
29+
```
30+
31+
However, you can still integrate the manifest additions manually if you prefer. With this update we recommend starting fresh as there have been a lot of entries to be removed.
32+
33+
34+
35+
### Updating code
36+
37+
There should be no changes to your code required for this update.
38+
39+
40+
### Updating the manifest
41+
42+
You can simplify the manifest now as well as the gradle implementation will add a significant amount of the required manifest entries for you.
43+
If you use the `apm` tool to generate your application descriptor you will see the manifest entries are significantly reduced and simply running the commands above will update the manifest for you.
44+
45+
If you manually update the manifest then, as mentioned above, we recommend starting fresh as there have been a lot of entries to be removed. You no longer have to manually add all of the Facebook related manifest entries as these are now added automatically by the gradle implementation.
46+
47+
There are still some meta-data entries that you may need to add for specific features, but these are minimal.
48+
49+
Below are the minimum manifest additions required for each of the extensions.
50+
51+
:::caution
52+
Ensure you replace:
53+
- `APPLICATION_PACKAGE` with your AIR application's Java package name, something like `air.com.distriqt.test`. Generally this is your AIR application id prefixed by `air.` unless you have specified no air flair in your build options.
54+
- You will need to replace the instances of `FACEBOOK_APP_ID`, `FACEBOOK_APP_NAME` and `FACEBOOK_CLIENT_TOKEN` with the relevant settings from your Facebook app. See [Get Started](../../get-started.md) for details.
55+
- Ensure the `\u003` remains in front of the app id and client token (this ensures the value is treated as a string correctly).
56+
:::
57+
58+
59+
#### Core and Login
60+
61+
```xml
62+
<manifest android:installLocation="auto">
63+
64+
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="34"/>
65+
66+
<uses-permission android:name="android.permission.INTERNET"/>
67+
68+
<application>
69+
70+
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="\u003FACEBOOK_APP_ID"/>
71+
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="\u003FACEBOOK_CLIENT_TOKEN"/>
72+
73+
<!-- Optional meta-data configuration -->
74+
<!-- <meta-data android:name="com.facebook.sdk.AutoInitEnabled" android:value="false"/> -->
75+
<!-- <meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="false"/> -->
76+
<!-- <meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" android:value="false"/> -->
77+
78+
</manifest>
79+
```
80+
81+
#### Share and Gaming
82+
83+
```xml
84+
<manifest android:installLocation="auto">
85+
86+
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="34"/>
87+
88+
<uses-permission android:name="android.permission.INTERNET"/>
89+
90+
<queries>
91+
<provider android:authorities="com.facebook.katana.provider.PlatformProvider" /> <!-- allows app to access Facebook app features -->
92+
<provider android:authorities="com.facebook.orca.provider.PlatformProvider" /> <!-- allows sharing to Messenger app -->
93+
</queries>
94+
95+
<application>
96+
97+
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="\u003FACEBOOK_APP_ID"/>
98+
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="\u003FACEBOOK_CLIENT_TOKEN"/>
99+
100+
<!-- Optional meta-data configuration -->
101+
<!-- <meta-data android:name="com.facebook.sdk.AutoInitEnabled" android:value="false"/> -->
102+
<!-- <meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="false"/> -->
103+
<!-- <meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" android:value="false"/> -->
104+
105+
<!-- Share -->
106+
<provider android:authorities="com.facebook.app.FacebookContentProviderFACEBOOK_APP_ID"
107+
android:name="com.facebook.FacebookContentProvider"
108+
android:exported="true"/>
109+
110+
</manifest>
111+
```
112+
113+
114+

docs/facebookapi/migrating-to-version-8.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
2-
title: Migrating to Version 8
3-
sidebar_label: Migrating to Version 8
2+
title: Migrating to v8
43
---
54

65
Version 8 of the FacebookAPI brings a complete rewrite and restructure of the API to bring it inline with the latest Facebook SDK and to remove a series of API elements that Facebook have deprecated and removed over time.

docs/facebookapi/migrating-to-version-9.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
2-
title: Migrating to Version 9
3-
sidebar_label: Migrating to Version 9
2+
title: Migrating to v9
43
---
54

65
Version 9 of the FacebookAPI brings a major internal update to the iOS SDK.

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,7 @@ module.exports = {
12101210
},
12111211
{
12121212
Help: [
1213+
"facebookapi/migrating-to-version-18.0",
12131214
"facebookapi/signing",
12141215
"facebookapi/migrating-to-version-10",
12151216
"facebookapi/migrating-to-version-9",

static/asdocs/facebookapi/all-classes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ <h3><a href="class-summary.html" target="classFrame" style="color:black">All Cla
142142
</table>
143143
</body>
144144
</html>
145-
<!--Copyright distriqt 2016<br/>Fri May 17 2024, 01:46 PM +10:00 -->
145+
<!--Copyright distriqt 2016<br/>Thu Jan 16 2025, 11:16 AM +10:00 -->

static/asdocs/facebookapi/all-index-A.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
Represent an AuthenticationToken used for a login attempt.</td></tr><tr><td class="idxrow" colspan="2"><a href="com/distriqt/extension/facebook/login/AuthenticationToken.html#AuthenticationToken()" onclick="javascript:loadClassListFrame('com/distriqt/extension/facebook/login/class-list.html');">AuthenticationToken</a>() &mdash; Constructor, class com.distriqt.extension.facebook.login.<a href="com/distriqt/extension/facebook/login/AuthenticationToken.html" onclick="javascript:loadClassListFrame('com/distriqt/extension/facebook/login/class-list.html');">AuthenticationToken</a></td></tr><tr><td width="20"></td><td></td></tr><tr><td class="idxrow" colspan="2"><a href="com/distriqt/extension/facebook/login/events/FacebookLoginEvent.html#authToken" onclick="javascript:loadClassListFrame('com/distriqt/extension/facebook/login/events/class-list.html');">authToken</a> &mdash; Property, class com.distriqt.extension.facebook.login.events.<a href="com/distriqt/extension/facebook/login/events/FacebookLoginEvent.html" onclick="javascript:loadClassListFrame('com/distriqt/extension/facebook/login/events/class-list.html');">FacebookLoginEvent</a></td></tr><tr><td width="20"></td><td>
8686
AuthenticationToken used for a login attempt.</td></tr><tr><td class="idxrow" colspan="2"><a href="com/distriqt/extension/facebook/appevents/FlushBehaviour.html#AUTO" onclick="javascript:loadClassListFrame('com/distriqt/extension/facebook/appevents/class-list.html');">AUTO</a> &mdash; Constant Static Property, class com.distriqt.extension.facebook.appevents.<a href="com/distriqt/extension/facebook/appevents/FlushBehaviour.html" onclick="javascript:loadClassListFrame('com/distriqt/extension/facebook/appevents/class-list.html');">FlushBehaviour</a></td></tr><tr><td width="20"></td><td>
8787
Flush automatically: periodically (every 15 seconds or after every 100 events), and always at
88-
app reactivation.</td></tr><tr><td colspan="2" style="padding-bottom:20px"></td></tr><tr><td colspan="2"><font color="black" size="10px" style="bold">A</font>&nbsp;&nbsp;<a href="all-index-B.html" onclick="javascript:loadClassListFrame('index-list.html');">B</a>&nbsp;&nbsp;<a href="all-index-C.html" onclick="javascript:loadClassListFrame('index-list.html');">C</a>&nbsp;&nbsp;<a href="all-index-D.html" onclick="javascript:loadClassListFrame('index-list.html');">D</a>&nbsp;&nbsp;<a href="all-index-E.html" onclick="javascript:loadClassListFrame('index-list.html');">E</a>&nbsp;&nbsp;<a href="all-index-F.html" onclick="javascript:loadClassListFrame('index-list.html');">F</a>&nbsp;&nbsp;<a href="all-index-G.html" onclick="javascript:loadClassListFrame('index-list.html');">G</a>&nbsp;&nbsp;<a href="all-index-H.html" onclick="javascript:loadClassListFrame('index-list.html');">H</a>&nbsp;&nbsp;<a href="all-index-I.html" onclick="javascript:loadClassListFrame('index-list.html');">I</a>&nbsp;&nbsp;<a href="all-index-J.html" onclick="javascript:loadClassListFrame('index-list.html');">J</a>&nbsp;&nbsp;<a href="all-index-K.html" onclick="javascript:loadClassListFrame('index-list.html');">K</a>&nbsp;&nbsp;<a href="all-index-L.html" onclick="javascript:loadClassListFrame('index-list.html');">L</a>&nbsp;&nbsp;<a href="all-index-M.html" onclick="javascript:loadClassListFrame('index-list.html');">M</a>&nbsp;&nbsp;<a href="all-index-N.html" onclick="javascript:loadClassListFrame('index-list.html');">N</a>&nbsp;&nbsp;<a href="all-index-O.html" onclick="javascript:loadClassListFrame('index-list.html');">O</a>&nbsp;&nbsp;<a href="all-index-P.html" onclick="javascript:loadClassListFrame('index-list.html');">P</a>&nbsp;&nbsp;<a href="all-index-Q.html" onclick="javascript:loadClassListFrame('index-list.html');">Q</a>&nbsp;&nbsp;<a href="all-index-R.html" onclick="javascript:loadClassListFrame('index-list.html');">R</a>&nbsp;&nbsp;<a href="all-index-S.html" onclick="javascript:loadClassListFrame('index-list.html');">S</a>&nbsp;&nbsp;<a href="all-index-T.html" onclick="javascript:loadClassListFrame('index-list.html');">T</a>&nbsp;&nbsp;<a href="all-index-U.html" onclick="javascript:loadClassListFrame('index-list.html');">U</a>&nbsp;&nbsp;<a href="all-index-V.html" onclick="javascript:loadClassListFrame('index-list.html');">V</a>&nbsp;&nbsp;<a href="all-index-W.html" onclick="javascript:loadClassListFrame('index-list.html');">W</a>&nbsp;&nbsp;<a href="all-index-X.html" onclick="javascript:loadClassListFrame('index-list.html');">X</a>&nbsp;&nbsp;<a href="all-index-Y.html" onclick="javascript:loadClassListFrame('index-list.html');">Y</a>&nbsp;&nbsp;<a href="all-index-Z.html" onclick="javascript:loadClassListFrame('index-list.html');">Z</a>&nbsp;&nbsp;</td></tr></table><p></p><center class="copyright"><footer>Copyright <a href="http://distriqt.com" target="_top">distriqt</a> 2016</footer><br/>Fri May 17 2024, 01:46 PM +10:00 </center></div></body></html><!--Copyright distriqt 2016<br/>Fri May 17 2024, 01:46 PM +10:00 -->
88+
app reactivation.</td></tr><tr><td colspan="2" style="padding-bottom:20px"></td></tr><tr><td colspan="2"><font color="black" size="10px" style="bold">A</font>&nbsp;&nbsp;<a href="all-index-B.html" onclick="javascript:loadClassListFrame('index-list.html');">B</a>&nbsp;&nbsp;<a href="all-index-C.html" onclick="javascript:loadClassListFrame('index-list.html');">C</a>&nbsp;&nbsp;<a href="all-index-D.html" onclick="javascript:loadClassListFrame('index-list.html');">D</a>&nbsp;&nbsp;<a href="all-index-E.html" onclick="javascript:loadClassListFrame('index-list.html');">E</a>&nbsp;&nbsp;<a href="all-index-F.html" onclick="javascript:loadClassListFrame('index-list.html');">F</a>&nbsp;&nbsp;<a href="all-index-G.html" onclick="javascript:loadClassListFrame('index-list.html');">G</a>&nbsp;&nbsp;<a href="all-index-H.html" onclick="javascript:loadClassListFrame('index-list.html');">H</a>&nbsp;&nbsp;<a href="all-index-I.html" onclick="javascript:loadClassListFrame('index-list.html');">I</a>&nbsp;&nbsp;<a href="all-index-J.html" onclick="javascript:loadClassListFrame('index-list.html');">J</a>&nbsp;&nbsp;<a href="all-index-K.html" onclick="javascript:loadClassListFrame('index-list.html');">K</a>&nbsp;&nbsp;<a href="all-index-L.html" onclick="javascript:loadClassListFrame('index-list.html');">L</a>&nbsp;&nbsp;<a href="all-index-M.html" onclick="javascript:loadClassListFrame('index-list.html');">M</a>&nbsp;&nbsp;<a href="all-index-N.html" onclick="javascript:loadClassListFrame('index-list.html');">N</a>&nbsp;&nbsp;<a href="all-index-O.html" onclick="javascript:loadClassListFrame('index-list.html');">O</a>&nbsp;&nbsp;<a href="all-index-P.html" onclick="javascript:loadClassListFrame('index-list.html');">P</a>&nbsp;&nbsp;<a href="all-index-Q.html" onclick="javascript:loadClassListFrame('index-list.html');">Q</a>&nbsp;&nbsp;<a href="all-index-R.html" onclick="javascript:loadClassListFrame('index-list.html');">R</a>&nbsp;&nbsp;<a href="all-index-S.html" onclick="javascript:loadClassListFrame('index-list.html');">S</a>&nbsp;&nbsp;<a href="all-index-T.html" onclick="javascript:loadClassListFrame('index-list.html');">T</a>&nbsp;&nbsp;<a href="all-index-U.html" onclick="javascript:loadClassListFrame('index-list.html');">U</a>&nbsp;&nbsp;<a href="all-index-V.html" onclick="javascript:loadClassListFrame('index-list.html');">V</a>&nbsp;&nbsp;<a href="all-index-W.html" onclick="javascript:loadClassListFrame('index-list.html');">W</a>&nbsp;&nbsp;<a href="all-index-X.html" onclick="javascript:loadClassListFrame('index-list.html');">X</a>&nbsp;&nbsp;<a href="all-index-Y.html" onclick="javascript:loadClassListFrame('index-list.html');">Y</a>&nbsp;&nbsp;<a href="all-index-Z.html" onclick="javascript:loadClassListFrame('index-list.html');">Z</a>&nbsp;&nbsp;</td></tr></table><p></p><center class="copyright"><footer>Copyright <a href="http://distriqt.com" target="_top">distriqt</a> 2016</footer><br/>Thu Jan 16 2025, 11:16 AM +10:00 </center></div></body></html><!--Copyright distriqt 2016<br/>Thu Jan 16 2025, 11:16 AM +10:00 -->

0 commit comments

Comments
 (0)