last day (14 days later) » 

7:51 AM
0
Q: Facebook Graph API - Retrieve photo - Unsupported get request

BolandI am testing the Facebook Graph API via their explorer. I managed to get my feed using me/home. However, I want to get some details from uploaded pictures. As I read on other posts, I have to re-run the query using the object_id in the POST object. This only works for public images. Whenever I t...

 
Lix
Has your wife's account authorized your application to have access to her photos? This is the user_photos permission.
 
I use the Graph API, so I log in as myself. She has granted 3rd party apps access to her photos.
 
Lix
Her user has to authorize your application. You can't grant permission to any 3rd party app - it has to be for a specific application.
Think of it this way - should my application have access to her photos? Absolutely not - that would be a serious security violation... Only applications that she has authenticated have access.
 
That sounds weird. That would mean that a 3rd party app would only be able to open the user's own photos. I need access to photos that are posted on the timeline (me/home). So, that's not possible?
But, the issue is: In the response from me/home I get one post-object about the fact she uploaded 7 photo's. In my app I want to show those 7 photo's, so I would need to open that album. The only way to get to that album is through the photo... Or not?
 
Lix
Yea - access to the actual album would need permissions. However, according to the documentation, you should be able to see: "The feed of posts (including status updates) and links published by this person, or by others on this person's profile.".
Are you sure that the photo is actually posted to the timeline and not just appearing there because you are tagged in the post/photo? I too can not see a photo through the API from my timeline that was posted by someone else even though it does appear in my feed. But this photo was not posted to me - I was only tagged in it.
Hi :) I don't have too much time here though...
 
7:52 AM
Yes, the photo is posted to the timeline AND I'm tagged in it. But, this is not the only example, I just cannot open any photo using the Graph API in the Explorer.
Yeah SO complaint we should not chat int he comments :)
I am trying to build an app that represents the Facebook home feed, but then I need to open photo details of photos in the timeline
 
Lix
I believe that if you can't open any photos then it's a permissions error...
 
only public photos
I thought that I could open every photo that I get as a result in me/home
 
Lix
Ok - so you should try using the user_photos permission and see if that gives you access to non-public content...
it is after all a photo and there is a specific permission for it...
 
I enabled all permissions
 
Lix
and you still can't see it?
 
7:56 AM
nope, tried with 3 non-public photos
I can see them in me/home
but if I try to open /{photo-id} I get GraphMethodException
 
Lix
then it might be privacy settings for that specific post... what are the privacy settings?
 
her friends and my friends
 
Lix
and you're testing this though the API explorer or through your application?
 
API explorer
also tested with photos "Shared with xx Friends"
 
Lix
hm... that does sound strange...
 
8:00 AM
it's so annoying
I neither can access profile picture :S
 
Lix
Ah - no that really is public info...
 
oh sorry that is not true, that does work
 
yeah just tried, sorry about that
 
Lix
=] phew :)
Got worried there for a second ;)
 
8:04 AM
but thanks, I'll have another look
 
Lix
Ok... sorry friend but I have to get back to work now... Hopefully you'll get some more answers from your original post
Good luck and happy coding!
 
thanks! Good luck working
 

last day (14 days later) »