Hi everyone,
I’m trying to create a invite friends layer, i’m using PluginFacebook::requestInvitableFriends to get friends list, but the callback FBInvitableFriendsInfo friends is always empty, it doesn’t even contain original string data.
I read the sdkbox document and it mention that “custom invite dialog is only available for games with a canvas implementation for the Facebook application” <= is this mean this only work if my game is canvas/html 5? how about game on native platform?
If i use PluginFacebook::inviteFriends(); -> the dialog with friend list still show correctly
@nite sorry tagging you in like this, my problem is a bit rush ?
this is what my code look like:
FBAPIParam params;
PluginFacebook::requestInvitableFriends(params);
void InviteLayer::onRequestInvitableFriends( const sdkbox::FBInvitableFriendsInfo& friends ){
for (auto ite = friends.begin(); ite != friends.end(); ite++) {
CCLOG("---------------");
CCLOG(“name = %s”, ite->getName().c_str());
CCLOG(“user id = %s”, ite->getUserId().c_str());
CCLOG(“picture url = %s”, ite->getPictureURL().c_str());
}
CCLOG(“the next url = %s”, friends.getNextURL().c_str());
CCLOG(“num token = %u”, friends.getNumInvitationTokens());
CCLOG(“the next cursor = %s”, friends.getNextCursor().c_str());
CCLOG(“the original string = %s”, friends.getOriginalString().c_str());
}