kv_parameters

Subscribe to kv_parameters 4 posts

avatar for Rainbow_King Rainbow_King 6 posts
Flag Post

So for this function

kongregate.services.showFeedPostBox({
content: “Come help defeat the boss!”,
image_uri: “http://your-domain.tld/feed-post-images/really-hard-boss-face.png”,
kv_params: { kv_doug: “Top doug!” }
});

would I access the parameter in a file by using [‘kv_doug’] or [‘doug’] from $_REQUEST?

thank you in advance for the reply

 
avatar for UnknownGuardian UnknownGuardian 8208 posts
Flag Post

Neither?

That is a client function so you do not have access to that from $_REQUEST. kv_varname just lets you pass in variables from your iframe into the game.

 
avatar for Rainbow_King Rainbow_King 6 posts
Flag Post

Does it not put the kv_parameters into the url when a user clicks on the feed box after being posted?

 
avatar for UnknownGuardian UnknownGuardian 8208 posts
Flag Post

Yep it does, but that URL won’t get touched by your server unless you pass it to it (or check the referring url I guess?)

That link takes them to the game page, where your game will have to contact your servers with that info.