HIVE SDK for C++

Classes | Typedefs | Functions
SocialFacebook

@addgroup SocialFacebook More...

Classes

class  SocialFacebook
 
class  ProfileFacebook
 Facebook user profile information. More...
 
class  FacebookMessage
 Facebook message destinations. More...
 

Typedefs

typedef std::function< void(ResultAPI const &result, std::vector< ProfileFacebook > const &profileList)> SocialFacebook::onProfileFacebook
 Returns HIVE Profile / Friend Information. More...
 
typedef std::function< void(ResultAPI const &result)> SocialFacebook::onSendMessageFacebook
 Returns Facebook message transmission result. More...
 
typedef std::function< void(ResultAPI const &result, std::vector< std::string > const &invitedUserList)> SocialFacebook::onShowInvitationDialogFacebook
 Returns Facebook user invite to friend. More...
 
typedef std::function< void(ResultAPI const &result)> SocialFacebook::onPostFacebook
 Returns Facebook posting result. More...
 

Functions

static void SocialFacebook::getMyProfile (onProfileFacebook listener)
 Request profile information of Facebook certified users. More...
 
static void SocialFacebook::getFriends (onProfileFacebook listener)
 Request Facebook friends list. More...
 
static void SocialFacebook::sendMessageFacebook (FacebookMessage messageContents, onSendMessageFacebook listener)
 Send message to Facebook friend. More...
 
static void SocialFacebook::showInvitationDialog (FacebookMessage inviteContents, onShowInvitationDialogFacebook listener)
 Show Facebook friend invite dialog to Facebook user
(Note: Generally, to increase the number of social friends, you can give a reward for inviting friends. More...
 
static void SocialFacebook::postFacebookWithContentURL (std::string contentURL, onPostFacebook listener)
 Post messages and images on Facebook timeline. More...
 
static bool SocialFacebook::isLogin ()
 사용자의 Facebook 세션 정보가 client에 있는 여부를 반환한다. More...
 

Detailed Description

@addgroup SocialFacebook

Typedef Documentation

◆ onPostFacebook

typedef std::function<void(ResultAPI const & result)> SocialFacebook::onPostFacebook

Returns Facebook posting result.

Parameters
resultAPI call result

◆ onProfileFacebook

typedef std::function<void(ResultAPI const & result, std::vector<ProfileFacebook> const & profileList)> SocialFacebook::onProfileFacebook

Returns HIVE Profile / Friend Information.

Parameters
resultAPI call result
profileListFacebook user's profile list.

(If you ask for your profile, one result is returned, and if you ask for friends list, a list of friends is returned.)

◆ onSendMessageFacebook

typedef std::function<void(ResultAPI const & result)> SocialFacebook::onSendMessageFacebook

Returns Facebook message transmission result.

Parameters
resultAPI call result

◆ onShowInvitationDialogFacebook

typedef std::function<void(ResultAPI const & result, std::vector<std::string> const & invitedUserList)> SocialFacebook::onShowInvitationDialogFacebook

Returns Facebook user invite to friend.

Parameters
resultAPI call result
invitedUserListList of IDs of invited Facebook users

Function Documentation

◆ getFriends()

static void SocialFacebook::getFriends ( onProfileFacebook  listener)
static

Request Facebook friends list.

Parameters
listenerAPI call result listener

◆ getMyProfile()

static void SocialFacebook::getMyProfile ( onProfileFacebook  listener)
static

Request profile information of Facebook certified users.

Parameters
listenerAPI call result listener

◆ isLogin()

static bool SocialFacebook::isLogin ( )
static

사용자의 Facebook 세션 정보가 client에 있는 여부를 반환한다.

Returns
Boolean. YES이면 사용자의 Facebook 세션 정보가 client에 있음. 아니면 NO.

◆ postFacebookWithContentURL()

static void SocialFacebook::postFacebookWithContentURL ( std::string  contentURL,
onPostFacebook  listener 
)
static

Post messages and images on Facebook timeline.

Parameters
contentURLFacebook posting information URL.
listenerAPI call result

◆ sendMessageFacebook()

static void SocialFacebook::sendMessageFacebook ( FacebookMessage  messageContents,
onSendMessageFacebook  listener 
)
static

Send message to Facebook friend.

Parameters
messageContentsFacebook message to be sent
listenerAPI call result listener

◆ showInvitationDialog()

static void SocialFacebook::showInvitationDialog ( FacebookMessage  inviteContents,
onShowInvitationDialogFacebook  listener 
)
static

Show Facebook friend invite dialog to Facebook user
(Note: Generally, to increase the number of social friends, you can give a reward for inviting friends.

but Facebook prohibited this.)

Parameters
inviteContentsFacebook invite message
listenerAPI call result listener
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy