File tree 2 files changed +7
-3
lines changed
Assets/FBAuthKit/Kit/Scripts
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- using System . Collections . Generic ;
2
- using UnityEngine ;
1
+ using UnityEngine ;
3
2
using Facebook . Unity ;
4
3
using PublisherKit ;
5
4
@@ -8,6 +7,8 @@ namespace FBAuthKit
8
7
public class FacebookAuthController : Publisher
9
8
{
10
9
10
+ public string [ ] permissions ;
11
+
11
12
#region Unity Behaviour
12
13
void Awake ( )
13
14
{
@@ -42,7 +43,6 @@ void OnHideUnity(bool isGameShown)
42
43
#region Auth
43
44
public void Auth ( )
44
45
{
45
- List < string > permissions = new List < string > ( ) { "public_profile" } ;
46
46
Broadcast ( "OnAuthRequest" ) ;
47
47
FB . LogInWithReadPermissions ( permissions , AuthCallback ) ;
48
48
}
Original file line number Diff line number Diff line change @@ -6,8 +6,12 @@ Facebook Authentication Toolkit for Unity
6
6
7
7
* Add Facebook Auth Controller from ` FBAuthKit/Kit/Prefabs/Facebook Auth Controller.prefab ` to your Unity scene.
8
8
9
+ * Setup Permission in Facebook Auth Controller
10
+
9
11
* Create Facebook Auth subscriber script and put it to scene.
10
12
13
+ * Call ` Auth ` method of Facebook Auth Controller to login
14
+
11
15
## Facebook Auth Subscriber
12
16
13
17
``` cs
You can’t perform that action at this time.
0 commit comments