Welcome Developers!

in

Welcome!

in

question: how to attach a link in content of notification ?

Last post 01-25-2011 2:22 PM by Joel. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 12-08-2010 3:06 AM

    question: how to attach a link in content of notification ?

    Hi all, i use Notifications MySpace v1 and send notification to my friends from myspaceid offsite, but i don't know how to attach a link (ex: Hi ${recipient}, a notification from mysite.com) any help is greatly appreciate! thanks much
  • 12-08-2010 2:11 PM In reply to

    Re: question: how to attach a link in content of notification ?

    What is your appID? Did this work before? I am not sure if this works for v1 or not.

    See here for the latest version of our Notifications API: http://wiki.developer.myspace.com/index.php?title=Notifications_API

     

    thanks,

    Joel

  • 12-08-2010 6:35 PM In reply to

    Re: question: how to attach a link in content of notification ?

    Hi Joel, my appid is 198910, v1 is worked as well, but i don't know how to include a link to mysite in contents of notification, any token form for this (ex: ${external_url}) ? thanks for reply!
  • 12-09-2010 2:59 PM In reply to

    Re: question: how to attach a link in content of notification ?

     It may fail to being still in development, also you cannot use 'localhost' for your external urls:

    External URL: http://localhost/grab

    External Domain: http://localhost

    I will check on this issue, but I think these two things might account for the failure, too.

     

    thanks,

    Joel

     

  • 01-20-2011 3:04 AM In reply to

    Re: question: how to attach a link in content of notification ?

     

     Thanks Joel,

    From my localhost (or myspaceid offsite), i can send notification to my friends successfully,

    And assume i have a valid domain, the problem is:

    I want to send together with any params for purpose: when my friends click on contents of notification that i sent, they'll redirected to my website. Or at least, they have to redirected to my onsite app myspace with a signal to route to appropriate page.

    Any ideas for this, Thanks much.

     myspaceid:  199020

    my onsite app id: 187540


  • 01-21-2011 12:27 PM In reply to

    Re: question: how to attach a link in content of notification ?

    Hi,

    Only internal urls are supported for links inside notifications. You cannot put in a link to an external site.

    If I use http://www.yahoo.com in an href tag, then I should get following error.

    x-opensocial-error:ErrorMessage - Message:href must match *.myspace.com domain.. Section:BodyErrorMessage - Message:href value does not match

     

    thanks,

    Joel

  • 01-23-2011 4:15 AM In reply to

    Re: question: how to attach a link in content of notification ?

    Thanks Joel,
  • 01-25-2011 2:22 PM In reply to

    Re: question: how to attach a link in content of notification ?

     No problem.

     

    -Joel

Page 1 of 1 (8 items)