Getting user id of facebook and twitter in sharekit

前端 未结 5 1250
[愿得一人]
[愿得一人] 2020-12-10 17:18

Iam implementing facebook and twitter using sharekit for an iphone app. How can we get the user id of the logged in user so that I could send it to the server. Any help will

5条回答
  •  孤街浪徒
    2020-12-10 17:42

    I don't know about the textual user name, but if you are after the id -

    Take a look at ShareKit's SHKFacebook class. It has an FBSession member called session. An FBSession has a FBUID which is just a typedef for long - but I'm assuming it represents some form of user ID.

提交回复
热议问题