Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / FacebookDownloadFriendsPhoto - where is the photo saved on android device?

Author
Message
Space Dream Studios
Competition Prize Winner 2014
14
Years of Service
User Offline
Joined: 3rd Mar 2010
Location:
Posted: 14th May 2014 13:11 Edited at: 14th May 2014 13:12
I tried to download Facebook Friends Photo with the FacebookDownloadFriendsPhoto(index) function. Login works fine and I'm getting a valid FacebookGetFriendsCount() number as well as good friend ids and names. But after using the photo download function, I'm not able to find the image file like descriped in the help section...
I guess that I'm trying to find the file in the wrong folder...
How to setup the right folder?

Thanks in advance!!!

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 14th May 2014 13:32
maybe the os hide some folders/files because rights.
u should see all with root rights.
not all filemanager handle this.
my android handy via usb at pc hide many folders there^^

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
Space Dream Studios
Competition Prize Winner 2014
14
Years of Service
User Offline
Joined: 3rd Mar 2010
Location:
Posted: 14th May 2014 14:51
It's not the question that I can't see it with a filemanager, the problem is that the program can't find the image file with "getfileexists()".

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 14th May 2014 15:07 Edited at: 14th May 2014 15:11
what szFile parameter u give GetFileExists(...) ?
if your app is running you find the file with filemanager?
u should verify first if it is in filesystem.
maybe its above media folder in "user documents"?

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
Space Dream Studios
Competition Prize Winner 2014
14
Years of Service
User Offline
Joined: 3rd Mar 2010
Location:
Posted: 14th May 2014 16:11 Edited at: 14th May 2014 16:13
Ok, got an answer from Paul.....
The photo file has to be addressed like: “/FBxxxxxxxxxProfile.jpg”
So actually the "/" was missing.....
Would be good if the help documentation could be updated too.

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 14th May 2014 17:26
ok, you can upload example or hint here.
http://www.appgamekit.com/documentation/Reference/Extras/FacebookDownloadFriendsPhoto.htm

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
Naphier
13
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 14th May 2014 21:44
Special note!
On android these are stored in the media folder, but on iOS they are stored in the directory above the media folder...
So what I do is simply check both folders for the image.
Also, if you grab the friends list twice within the same session you will get duplicates on iOS. I copied all the data into my own array to remove duplicates, but you could similarly make sure you only call it once per boot up.

Space Dream Studios
Competition Prize Winner 2014
14
Years of Service
User Offline
Joined: 3rd Mar 2010
Location:
Posted: 15th May 2014 01:23
Thanks Naphier! Good and important note!!!

Login to post a reply

Server time is: 2024-04-27 14:59:07
Your offset time is: 2024-04-27 14:59:07