Welcome Developers!

in

Welcome!

in

Access to Friend's Album and Photos, Acitivities

Last post 11-11-2010 11:28 AM by Joel. 16 replies.
Page 1 of 2 (17 items) 1 2 Next >
Sort Posts: Previous Next
  • 09-17-2010 10:00 AM

    • Exl
    • Not Ranked
    • Joined on 09-17-2010
    • Posts 7

    Access to Friend's Album and Photos, Acitivities

    Hello, I have an offsite application where I try to access my own album, photos and that works fine. But when I try to access my friend's album, photo, I get an exception of 401 Unauthorized (oauth_problems = permission denied), even though me and my friend both had application installed in their profile. Can you anybody has any solution to this?
  • 09-17-2010 1:31 PM In reply to

    Re: Access to Friend's Album and Photos, Acitivities

    Sounds like a permissions issue.  Check account settings under sync-

     

     http://profileedit.myspace.com/index.cfm?fuseaction=accountSettings.externalservices

     


  • 09-17-2010 2:10 PM In reply to

    • Exl
    • Not Ranked
    • Joined on 09-17-2010
    • Posts 7

    Re: Access to Friend's Album and Photos, Acitivities

    I checked all the permission.. both the account has all the permission to access the photos, videos... Is there any special permission we need to take care of when we Get Auth Token from myspace?? I am doing 3 legged oauth at my end. Regards, Sarvesh
  • 09-17-2010 2:34 PM In reply to

    Re: Access to Friend's Album and Photos, Acitivities

     Exl,

    Can you and your friend check your PRIVACY settings? Look at the very bottom and tell me what items are checked/unchecked in the boxes.

     

    thanks,

    Joel

  • 09-17-2010 2:47 PM In reply to

    • Exl
    • Not Ranked
    • Joined on 09-17-2010
    • Posts 7

    Re: Access to Friend's Album and Photos, Acitivities

    My and my friend's Privacy Settings have following Checkbox checked: Trendsetter, Online Now, Birthday, Block User By Age And Applications checkbox is unchecked.
  • 09-17-2010 3:13 PM In reply to

    Re: Access to Friend's Album and Photos, Acitivities

     It could be failing at the oauth level.  Are you using the right oauth token for the right person, is the signature correct, etc?

  • 09-17-2010 3:31 PM In reply to

    • Exl
    • Not Ranked
    • Joined on 09-17-2010
    • Posts 7

    Re: Access to Friend's Album and Photos, Acitivities

    There is only one oauth token for me. I am using the same oauth token to access the my own album, profile etc. It only fails when I try to use my friend's activity. I even getting my friend list and user id for the friend and using this user id I am trying to retrie the album using the same GetAlbum method which I have used to fetch my own Album List,with my friend's user id.
  • 09-17-2010 3:57 PM In reply to

    Re: Access to Friend's Album and Photos, Acitivities

     You get a different access token for each user who authorizes, which should be used for requests for that user. 

  • 09-20-2010 7:09 AM In reply to

    • Exl
    • Not Ranked
    • Joined on 09-17-2010
    • Posts 7

    Re: Access to Friend's Album and Photos, Acitivities

    So is it not possible to access my friend's album from my oauth even though he has authorized my app? So lets for e.g. I have an oauth token with value as 'xxxx' and my user id is '1234' and my friend's user id is '5678', I can't access '5678's album with my 'xxxx' auth token? Technically speaking, I should be, right? Because 5678 is my friend and he has authorized my app to access the albums.. Regards, Sarvesh
  • 09-20-2010 11:57 AM In reply to

    Re: Access to Friend's Album and Photos, Acitivities

     Hi,

    Album endpoints only support @self requests. I also see the same restriction for the Mediaitems API. Unless I am mistaken, you cannot grab friends' album/pics from a REST api call.

     

    thanks,

    Joel

  • 09-20-2010 12:06 PM In reply to

    • Exl
    • Not Ranked
    • Joined on 09-17-2010
    • Posts 7

    Re: Access to Friend's Album and Photos, Acitivities

    that helps!!.. I will try with non REST API calls and will let u know the results... Thanks Regards, Sarvesh
  • 09-21-2010 12:37 PM In reply to

    • Exl
    • Not Ranked
    • Joined on 09-17-2010
    • Posts 7

    Re: Access to Friend's Album and Photos, Acitivities

    Using non REST API worked!!!.. Now I am getting list of albums for a friend.. Thanks all for the help!!.. Regards, Sarvesh
  • 09-21-2010 1:07 PM In reply to

    Re: Access to Friend's Album and Photos, Acitivities

     Excellent, thanks for the update!

     

    -Joel

  • 10-06-2010 11:57 PM In reply to

    Re: Access to Friend's Album and Photos, Acitivities

    Could you please explain how you solved this. I am struggling with the same problem Thanks!
  • 10-11-2010 11:06 AM In reply to

    Re: Access to Friend's Album and Photos, Acitivities

     REST should work using the Activities API, what are you trying to GET?

     

    -Joel

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