MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Tempory dissabled showing the events on the FriendUpdate feed

Last post 01-06-2009 9:45 AM by rondata. 18 replies.
Page 1 of 2 (19 items) 1 2 Next >
Sort Posts: Previous Next
  • 12-02-2008 9:33 PM

    Tempory dissabled showing the events on the FriendUpdate feed

    We temporarily had to turn off any application events on the Friend Update feed. So to see if your event was raised you have to use the API calls to retrieve the events. See other forum post. Just looking on your Friend Update feed, or your own feed events will not show you what you actually did. We hope to re-enable this soon. Hope that Rhonda can twitter this as well.
  • 12-03-2008 9:44 AM In reply to

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

    bump

  • 12-06-2008 12:13 PM In reply to

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

     Since 5th of December at 22:00 everything is back to normal. Sorry for the outage. 

  • 12-08-2008 5:45 PM In reply to

    • Roman
    • Not Ranked
    • Joined on 08-06-2008
    • Posts 10

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

     Strange -can't get my activitieson any of the feeds. Callback say that there were no error, activity was posted. Tried this several times in the morning, still no activities received (also not visible under my activities).

    Probably the application needs some kind of permissions to publish activities now?

  • 12-08-2008 6:56 PM In reply to

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

    Are you viewing your updates?

    Click VIEW all updates, and in the top right hand corner it says "view my updates"

    Try that :)

     

    Rhonda

  • 12-09-2008 10:19 AM In reply to

    • Roman
    • Not Ranked
    • Joined on 08-06-2008
    • Posts 10

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

     Yeah, exactly the place i'm looking for it. Also checked the friend updates feed of another friend (added him as a developer before sending an activity)

    The code is:

    var params = {};
    params[opensocial.Activity.Field.TITLE_ID] = "Created_Pet";
    var pets_link = ...; //the link to application canvas here with some parameters in URL

    pets_link = pets_link.substr(27);
    params[opensocial.Activity.Field.TEMPLATE_PARAMS] = { "petsURL": pets_link };
    var mediaItemArray = [;
    mediaItemArray.push(opensocial.newMediaItem("", "http://api.myspace.com/v1/users/"+...))); //here the id number of a person who is sending an activity

    params[opensocial.Activity.Field.MEDIA_ITEMS] = mediaItemArray;
    var activity = opensocial.newActivity(params);
    opensocial.requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH,function(data){
        ... //here i check the data - it says something like {postactivityid: 1, postactivitystatus: posted}

    });
     

    Template code:

    Title: ${subject} has just adopted a pet!

    Body: Click <a href="http://profile.myspace.com/${petsURL}">here</a> to adopt yours today.

    Template was accepted in template editor and the code that sends it is almost a copy-paste of code from there too.

    Still not sure what is the reason of activities not delivered :(

  • 12-09-2008 12:04 PM In reply to

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

     do you have an app that this is using? maybe you can add me as a developer so I can take a looK?

  • 12-09-2008 1:49 PM In reply to

    • Roman
    • Not Ranked
    • Joined on 08-06-2008
    • Posts 10

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

     Sent you a friends request to add to devs.

    Another interesting thing found - when i use template like this:

    Title: ${subject} just ${actioned} ${user_id}'s SuperPoke! Pet

    Body: Click <a href="http://profile.myspace.com/${petsURL}&appParams=visitfriend_${subject.Id}-">here</a> to ${action} to ${subject}’s pet!

    (In other words with 4 custom variables) - i always get badRequest error with something like "Incorrect Template Parameter". If i remove any of this variables - everything is ok. (while still not delievered). Does the 4 vars limit works correctly?

  • 12-09-2008 3:15 PM In reply to

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

    Oh, I wonder if there's a cap on that.

    I'll find out.

    I friended you and also sent you a message :)

  • 12-09-2008 5:01 PM In reply to

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

    Yes there is a cap to max 4 variables.
    Make sure that you don't expand the petsUrl variable for the aggregated form.
    Final note, we are receiving all your events. They are not rejected. Let me find out why you do not see them.
  • 12-09-2008 6:21 PM In reply to

    • Roman
    • Not Ranked
    • Joined on 08-06-2008
    • Posts 10

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

     Not sure if i understand you about this " expand the petsUrl variable for the aggregated form " 

    I pass to petsURL a simple string like Modules/Applications/Pages/Canvas.aspx?appId=121721 to form an overall link like http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=121721&appParams=visitfriend_402292950-

     Not sure if this can somehow be counted as two variables :)

  • 12-09-2008 7:01 PM In reply to

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

     Roman,

    I found a bug in our infrastructure. We were only processing events for users up to id 399999999. Your userId 402292950 was just missed. My mistake. I updated this, so please sent your events again. This was a tough one to find, but I'm glad you reported this issue.

     Your event data is correct, and it does not fail any of our business rules. But I noticed something that could cause a problem. Besides the atomic form, there is an aggregated form for your template. The aggregated form is applied when multiple events are received from that sender. You can choose which variabley you want to expand to 'A, B, and C'. You can do this by choosing the variable in the dropdown:

    When multiple events occur per day, group by:

    I think you have the petsUrl selected, but probably a different variable would be more appropriate. Let me know if you need some more help in this area. It's definitly the advanced topic.

     

     

  • 12-11-2008 10:28 AM In reply to

    • Roman
    • Not Ranked
    • Joined on 08-06-2008
    • Posts 10

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

     Thank you, Marco and Rhonda,

    I see that activities are sent now. Haven't found the reason why 4 variables are rejected yet (but had not much to work on this). Anyway i've just used 3 variables version now. The main point is that they are sent :)

    Again, thx.

  • 12-11-2008 3:12 PM In reply to

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

     So the fourth variable is rejected so you can't even do 4 only 3 or below?

     

  • 12-11-2008 4:54 PM In reply to

    Re: IMPORTANT: We tempory dissabled showing the events on the FriendUpdate feed

    Just for my understanding; the preview works in the editor, but the actual raising by javascripts gives you an error?

    I just created something with 4 vars and that went o.k.

    var params = {};
    params[opensocial.Activity.Field.TITLE_ID] = "Template_10";
    params[opensocial.Activity.Field.TEMPLATE_PARAMS] = { "petsURL": "Hello World!", "habitat": "a", "habitat": "B", "test2": "Hello World!", "test4": "Hello World!" };
    var mediaItemArray = [; params[opensocial.Activity.Field.MEDIA_ITEMS] = mediaItemArray;
    var activity = opensocial.newActivity(params);
    opensocial.requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH, opt_callBack);

    -- And I could also not find any rejections. Did you get any message back that you can see in Firebug?

    Or do you get 'posted' back, but you do not see the event?

    I will try to resolve this a.s.a.p. but I've not been able to recreate your issue yet.

     [Just found out that I should not try to use Chrome for editing there forums :) ]

Page 1 of 2 (19 items) 1 2 Next >