line / line-sdk-unity

Provides a modern way of implementing LINE APIs in Unity games, for iOS and Android.
https://developers.line.biz/
Apache License 2.0
117 stars 24 forks source link

how to share and get all friend ids? #41

Closed RainforestPie closed 2 years ago

RainforestPie commented 2 years ago

Hello, I have less experience in accessing the SDK, and now I want to obtain a list of friend ids and realize the sharing function. It seems that there is no such interface in the line-sdk-unity. What should I do? Do I need to extend the SDK by myself? Thanks for the answer~

onevcat commented 2 years ago

Hi,

Currently the friends list getting and sharing is only provided as a feature for LINE Technology Partner program and not yet contained in the Unity SDK here. If you already have required permissions to those features and need to access them in Unity, currently you have to extend the SDK to call related APIs your own.

Please also consider to send a feature request if you are in the Technology Partner program.

RainforestPie commented 2 years ago

The reply was so quick. I searched the Internet for a long time yesterday and didn’t have a clue.

Thank you very much for pointing the direction! I'll try it. ; )

RainforestPie commented 2 years ago

Hi,

Currently the friends list getting and sharing is only provided as a feature for LINE Technology Partner program and not yet contained in the Unity SDK here. If you already have required permissions to those features and need to access them in Unity, currently you have to extend the SDK to call related APIs your own.

Please also consider to send a feature request if you are in the Technology Partner program.

@onevcat Hi, now I have implemented the Line sharing function. But the friend list cannot be obtained yet, and there is doubt.

As far as I know, the official Line account can get the id list of Follwer, but the official account type I created is Unverified, and because the area is outside the scope of application, I cannot apply for a verified account. This is probably the way you call team partner.This way is temporarily unworkable for me.

https://help2.line.me/official_account/web/categoryId/20006326/pc?lang=en image

On the other hand, what I want to get is the list of friend ids of my personal account. I have not found the relevant interface. Is there a way?

Similar to the problems encountered by others below:

Get Friend List with LINE Unity SDK image

How to get friend's list and friend's profile on line api ?

Thanks for answering~

RainforestPie commented 2 years ago

I realized that the Line SDK should not be able to get the user's friend list.

Different from Facebook and Twitter (their SDK can get the Followers and Following lists, which are public), Line is more like Wechat, and its friend relationship data is more private and important.

I think it should be like this. Thanks a lot~