Graph API - Photo uploaded by API is not visible - api

I`m geting the following problem.
Using graph api I can create an album (exactly photo album of my app). There is no problem also to upload photo to already created album (I have aid of this album as result of previous operation). After uploading photo I get also pid of the photo.
The problem starts now at the moment when I would like to get photos of the album. Graph API returns an empty array. Also I don't see any new album when I go to app page. However if I go to wall of my app page, I see this photo on "last added photos" list. I can enlarge uploaded photo, and I even see info that it's located in the proper album. There is another wird thing. If I choose this album, Facebook notice me that it`s an empty album.
I doesn't mean those operations are not done well, because if I request for a particular photo using pid (which I know from upload photo operation) I get a proper result - photo exist. Unfortunately it's really uncomfortable to store all pids of album in data base and perform separated request to each of it.

If the Facebook App is in "sandbox" mode, the images will only be visible to the admin/developers/tester users. Public users will not see the images.
Turning sandbox mode off fixed this issue for me.

Related

YouTube API - how to fetch all playlists of a channel, even the ones who were added from other channels

I stumbled across this problem as I wanted to transfer all playlists (my own and those who I added from other channels) to another channel.
The code I use returns only my own playlists and not the ones I added to my channel from another channel.
I tested this behaviour in the target account which contains a private playlist I created and two playlists from another channel. The script I created uses oauth in order to 'see' my private playlist, but is not able to find the certainly public playlist from the other channel.
My code:
request = youtube.playlists().list(
part="snippet,contentDetails,status",
channelId="UC_x5XG1OV2P6uZZ5FSM9Ttw",
maxResults=25
)
maxResults does not play a role here as I only have got all together three playlist on the test account.
The playlist from another channel is clearly visible when I use the "Library" link and scroll down to "Playlists".
I would appreciate any hint to solve this 'mystery'. TIA!
This is how I added the playlist from the other channel:
go to the other channel
list the playlists
click on "VIEW THE FULL PLAYLIST"
click on the icon which looks like a sandwich combined with a plus sign (hovering on it gives 'save playlist')

How to get other people or page video thumbnail from facebook?

is there a way you can get video thumbnail from another people video or post?
I tried searching in google and stackoverflow and all i found is getting your own video thumbnail which is working fine by using https://graph.facebook.com/v11.0/443055553744880/thumbnails?access_token=my_access_token but it is not working if i change the video_id to other people video_id (443055553744880 is the video_id). I want to get any public video thumbnail regardless of who post it, not just my own video. Is there anyway to do that?
Thanks in advance
No, that is not really possible.
For access to videos on pages you do not have admin access to, you would need the Page Public Content Access feature - only the purpose of that is to “Provide competitive benchmark analysis”, so it is probably unlikely you would get it approved for other purposes such as to show videos on your site.
And for access to any content on user profiles, you would need the individual user’s permission first.
If you just want to show the videos somewhere, then you can use the Embedded Video & Live Video Player for that, or the oEmbed endpoints.

GET friends/list Twitter

I'm working on a project for school and im pretty much done. Anyways project is to make a list of friends in a view controller, just user image and username, then clicking on their user image would bring up another nib with the same user picture only larger and username. We have to use GET friends/list and this is my call https://api.twitter.com/1.1/friends/list.json?cursor=-1&skip_status=true&include_user_entities=false&count=20
and im using this to get the profile image
NSString *imageUrl = [[usersArray objectAtIndex:i] objectForKey:#"profile_image_url"];
The only problem is that these pics are so tiny, and blurry. Making them larger just makes them more blurry, example from twitter api webpage:
http://a0.twimg.com/profile_images/2838630046/4b82e286a659fae310012520f4f756bb_normal.png
I know this would work, but its only for each individual profile.
http://api.twitter.com/1/users/profile_image?screen_name=USERNAME&size=bigger
Is there a way to use the GET friends/list call and get bigger more clear pictures?
Try replacing the "_normal.png" in the image url with with "_bigger.png" for 73px by 73px
http://a0.twimg.com/profile_images/2838630046/4b82e286a659fae310012520f4f756bb_bigger.png
or you can get the original image by stripping "_normal" from the url.
http://a0.twimg.com/profile_images/2838630046/4b82e286a659fae310012520f4f756bb.png.
Twitter documentation can be found at: https://dev.twitter.com/docs/user-profile-images-and-banners

How to get the original click date of the photo using Instagram API

I am using Instagram API and I need to get the original click date of the photo. Currently Instagram API give me the date the photo was uploaded to Instagram, but not the original click date. This an issue since it changes the meaning of the actual context of the photo.
Is there a way I can get the original date on which the photo was taken?
Isn't it the original click date and uploaded date same when then photo is clicked from inside the app? And if you are allowing a feature to add photos from gallery then there is no original photo only its instagrammed version exists.
ie: The original photo is stored in gallery location and the new photo after editing is stored in instagram folder or app folder.
The is no relation between the original and edited photo. So getting the date of creation of one file from another unrelated file is impossible.
You can not get the date date the photo was taken :-(
Instagram does not expose it via their api.
In my opinion this is short sited from instagram.
The date taken is stored in the image.
It can not be that difficult the save the correct date from the image, all the info is there.

Get favorited photos using vk API

I want to download all my favorited photos from VK, but I couldn't find suitable method in documentation. User's faves are not album and it makes troubles. Is there a way to do what I want?
You should use method fave.getPhotos to get pictures available here.
Access items from response and extract picture link from fields photo_807, photo_604, photo_130 or photo_75 dependent on which size do you need.
You can download images using the links extracted.
https://vk.com/dev/fave.getPhotos?params[photo_sizes]=0&params[v]=5.67