Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support refreshing access tokens #7

Closed
mmerickel opened this issue Nov 6, 2015 · 4 comments
Closed

support refreshing access tokens #7

mmerickel opened this issue Nov 6, 2015 · 4 comments

Comments

@mmerickel
Copy link

The native iOS and Android SDKs both support refreshing automatically. What is the reason this is not supported on Unity while running on iOS or Android?

Also, the iOS/Android SDKs are using a grant_type=fb_extend_sso_token to refresh the tokens which appears to have no documentation anywhere.

Do I need to abandon the Unity SDK and just use the native/web SDKs directly? Are there any plans to support token refresh in Unity?

@swiese
Copy link
Contributor

swiese commented Nov 9, 2015

This is something that we want to support on iOS and Android. We don't have a set eta but it will be coming.

@mmerickel
Copy link
Author

Thanks @swiese. In the meantime are there any things to know about fb_extend_sso_token as I attempt to add this to my own app manually? It appears to be undocumented as of yet.

@swiese
Copy link
Contributor

swiese commented Nov 12, 2015

You can add it by calling directly into our native ios and android sdks. I'll look at exposing this functionality in the next release or two but you can see how you could hook it up by looking at adding calls to our native sdks in
FB.java
FBUnityInterface.mm
And then calling from unity similar to our other methods in
IOSFacebook.cs
AndroidFacebook.cs

@swiese
Copy link
Contributor

swiese commented Dec 28, 2015

Add in latest unity sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants