In tumblr.com, are there any API to collect media data such as photos, videos of an account?
Like Facebook, there are Photo , Album feature which allow user to get photos.
Thanks in advance.
Tumblr is blog-based.
So, you can't post a photo or video like Facebook.
Therefore, you can not retrieve photos, videos via Tumblr developer site http://www.tumblr.com/developers
I think there is only way to do this job is you can get all posts of a blog, then detect whether there type are photo/video. Then, extract photos/videos from posts.
Related
I'm developing an application to show videos and images from facebook by using the Graph API. I've followed the Graph API document and able to show all images. But in the case of videos I'm getting only the videos where the user is tagged-in.
I need to get the user uploaded videos too.
How can I get the videos?
The Graph explorer link : https://developers.facebook.com/tools/explorer/APP_ID/?method=GET&path=me%2Fvideos&version=v2.3&
After some changes in the Graph API calls I've found the solution.
https://developers.facebook.com/tools/explorer?method=GET&path=USER_ID%2Fvideos%2Fuploaded&version=v2.3&
This'll help us to get all the uploaded videos.Where USER_ID is the id of the user who's signed in.
/me/videos should return all videos, tagged and uploaded. You can restrict to one or the other by using the type parameter: /me/videos?type=uploaded
What is the fundamental difference between uploading photos to an album or posting directly to the users wall? I want to provide the user with the best experience possible on my application, I also want to use an approach that also benefits my application in terms of social promotion.
Well, it's the same as when done manually, isn't it? Posting to wall gives you one post with photo in it, and posting to album gives you link to album with some thumbnails on your wall.
I am using rails and I need to fetch all user videos and user friend's videos from facebook and store it in our database.
Video's which is like
User and user friend's liked videos,
User and user friend's shared videos,
User and user friend's tagged videos,
User and user friend's commented videos,
User and user friend's uploaded videos, etc
So Is there any easy method to retrive all these videos at same time?
Videos in the user's stream will be in the stream object (see https://developers.facebook.com/docs/reference/fql/stream/). Play around in the Graph API explorer using fql?q={your query here} to see the results. You can play around with the where clause to get various groupings back. However, from my experience, to get all 5 categories of videos, you will have to run multiple queries. See documentation on multiquery query (Good examples here on this old REST API documentation: https://developers.facebook.com/docs/reference/rest/fql.multiquery/) Some of the non deprecated APIs support this.
Remember the Graph API explorer is your friend.
I am developing a greeting card application. Greeting card should be posted to multiple friends' wall. I had used graph API to upload picture to friend's wall using [friends_Id]/photos post. Using this approach Facebook will create an album in to that user account automatically rather than creating or sharing photo to friends. After photo upload this newly created album will be shared to friends. This is not the option which I'm looking.
Facebook will use the same album for other photo uploads. Since album was shared to some friends, all previously shared friends will get notifications on their news feed for this new photo upload. So I omitted this approach.
Second I used posting image link to friend's feed. This time Facebook won't allow me to post image links with hosted on their server saying that FCDN images are not allowed in stream.
Hosting a server will be an expensive option for me.
Third I used photo tagging approach. This work well. But this is not the required option.
In Facebook website there is an option to share a photo in an album to my friends wall. Can I implement this approach using graph API? Is there any option to share an uploaded image to friend's wall using graph API?
I hope that my question is clear to you... Please help.. :)
Perhaps this approach will work you. See https://developers.facebook.com/blog/post/526/ where you can post to a wall and refer to an existing photo, or basically attach a photo you own to a friend's wall. So here are the steps:
1) Upload the photo you are interested in sharing to your album. Note the photo ID.
2) Send an HTTP POST to https://graph.facebook.com/[FRIEND_ID]/feed with the object_attachment parameter set to your photo ID.
Please note that you will need an access token with publish_stream permission.
I was hoping someone can answer this question for me. I am trying to display wall posts, photos and videos for a certain user for example http://www.facebook.com/sony. I can see the wall posts, photos and videos without signing up for Facebook. Do I need to use the facebook connect API to access the photos and and videos for sony so that I can display them in my iPhone application? I need to display the wall posts as a table view and the images and videos as a gallery very much like how the facebook app displays it. Any help or a API specific page would be appreciated.
Thanks,
Firdosh
If you want to post to a facebook user's wall or status feed then you will need Facebook Connect API. Here's a video on how to add facebook connect to your iPhone App.
Here's the API documentation page you requested.
You will want to bear in mind, that Facebook video isn't able to be played on the iPhone as it's not encoded in any iPhone friendly format.