Using getTopNRankersFromFacebook with access token string.

0 votes

Hi

I want to fetch facebook top rankers using API method - getTopNRankersFromFacebook but  this method requires access token string as parameter. I am using latest Swift API provided by facebook in which Acces Token is a Struct and i am not able to find an option to get token string.

Can you please help me out with that or if there exists any other API which supports current struct as input parameter?

Looking forward for a quick response :)

Thanks

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000} span.s1 {font-variant-ligatures: no-common-ligatures}
asked Aug 13, 2017 in iOS by dhingra.viral (10 points)

1 Answer

0 votes
Hi Viral,

Apologies for late reply due to the long weekend.

I have forwarded this to my development team and will update you asap on this.

Thanks.
answered Aug 16, 2017 by rajeev.etc (1,660 points)
Hi Viral,

You can easily get the authentication token string from AccessToken struct from Swift response.
Just write below code after completing successful login to Facebook to get the authentication token string from Struct.
 
String(describing:AccessToken.current!.authenticationToken)
 
 
Or you can just print this code using print function
 
print("Authentication Token: \(String(describing:AccessToken.current!.authenticationToken))")

Thanks for your patience.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...