Skip to content

Commit 7b5bdf0

Browse files
authored
Merge pull request #5 from ARX-SKE12/hotfix/permission
Customizable Permission and Update README for Auth
2 parents b07dba7 + f27b438 commit 7b5bdf0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Assets/FBAuthKit/Kit/Scripts/FacebookAuthController.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Collections.Generic;
2-
using UnityEngine;
1+
using UnityEngine;
32
using Facebook.Unity;
43
using PublisherKit;
54

@@ -8,6 +7,8 @@ namespace FBAuthKit
87
public class FacebookAuthController : Publisher
98
{
109

10+
public string[] permissions;
11+
1112
#region Unity Behaviour
1213
void Awake()
1314
{
@@ -42,7 +43,6 @@ void OnHideUnity(bool isGameShown)
4243
#region Auth
4344
public void Auth()
4445
{
45-
List<string> permissions = new List<string>() { "public_profile" };
4646
Broadcast("OnAuthRequest");
4747
FB.LogInWithReadPermissions(permissions, AuthCallback);
4848
}

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ Facebook Authentication Toolkit for Unity
66

77
* Add Facebook Auth Controller from `FBAuthKit/Kit/Prefabs/Facebook Auth Controller.prefab` to your Unity scene.
88

9+
* Setup Permission in Facebook Auth Controller
10+
911
* Create Facebook Auth subscriber script and put it to scene.
1012

13+
* Call `Auth` method of Facebook Auth Controller to login
14+
1115
## Facebook Auth Subscriber
1216

1317
```cs

0 commit comments

Comments
 (0)