I'm creating a notification with template params "button0_surface, button0_label, button0_params". Button0_params is a json encoded set of params to direct users to a specific experience which matches the notification.
Unfortunately, it appears that the actual link that the user gets sent to when clicking the button is maleformed. I get:
http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=104682&appParams={&canvas_source=appnotification
But the template params I used was:
'templateParams' => array(
'button0_surface' => 'canvas',
'button0_label' => _('Check it out'),
'button0_params' => json_encode(array(
'z_page' => 'inbox',
'from' => 'flirt-self-notification'
))
)
It looks like our button params are stripped out, and replaced with maleformed json.