I am trying to fetch the Video Views count from Instagram API, but I can't find any API that provides the video counts, I have found this answer on Stackoverflow [How to retrieve video view count from Instagram API][1]
[1]: How to retrieve video view count from Instagram API but it doesn't work and gives me this error and response code
{
"error": {
"message": "(#200) Provide valid app ID",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "AZJFNJL_G3KzPu7VWUDlzsT"
}
}
I can't even find this Instagram API on the documentation at all, How I can get the video views count from the video URl using Instgram Grapgh API? and does instgram provide this?
Related
I have an application with dynamic links implemented. I'm making request to get short link with all socialMetaTagInfo defined (socialTitle, socialDescription, socialImageLink)
link is so far only dummy page with simple and whole request looks like this (I'm not filling more fields):
{
"dynamicLinkInfo": {
"dynamicLinkDomain": "dl_domain",
"link": "http://www.my_page.com",
"androidInfo": {
"androidPackageName": string
},
"socialMetaTagInfo": {
"socialTitle": string,
"socialDescription": string,
"socialImageLink": string
}
}
}
When I share result short link on Facebook I can see nice post with image, title and description. However when I share the link via Google + only link is visible without social fields. (Same for Slack for example).
Do I have to create my fallback page first? Or am I doing something wrong? I just want to know how to display the image, title and description in other social apps (pages).
Title,Desc,Images are the additional meta tags which is added to your Dynamic links.
Apps like Facebook, Twitter, Google+ will be identifying the meta data from your url and load it in the UI.
It may fail to load if the Image size is large or if Google+ app is not coded to handle it.
Hi im using Facebook Android Share Dialog but After successfully sharing a page on a facebook I get a post id like this: UzpfSTEwMDAwNzU5NjMxNDE5MDoxNjQ0MzI4NjU1ODMwMzI5
I check it via graph api but it still error?
{
"error": {
"message": "(#100) This api call does not support permalink tokens",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "B5OJZBt5DRL"
}
}
The post id UzpfSTEwMDAwNzU5NjMxNDE5MDoxNjQ0MzI4NjU1ODMwMzI5 is encoded to Base64 you should decode it.
Tried to decode it using https://www.base64decode.org/ and I got this S:_I100007596314190:1644328655830329. You could do a string manipulation and parse the postId to 100007596314190_1644328655830329. And you could use it on the Graph API to get the post.
This link should help you http://developer.android.com/reference/android/util/Base64.html in decoding Base64 in Android.
Im using Cloudinary along with an Android App.
Im uploading a image using:
cloudinary.uploader().upload(imagePath, ObjectUtils.emptyMap());
The problem is that I need the url to retrieve this image later. Is there any method that I can use to store the uploaded image url inside my App?
Thanks!
According to their documentation
Documentaion
This code shows
Map uploadResult = cloudinary.uploader().upload(file, ObjectUtils.emptyMap());
Uploading is performed synchronously. Once finished, the uploaded image is immediately available for manipulation and delivery.
An upload API call returns a JSON object with content similar to that shown in the following example:
{
"public_id":"tquyfignx5bxcbsupr6a",
"version":1375302801,
"signature":"52ecf23eeb987b3b5a72fa4ade51b1c7a1426a97",
"width":1920,
"height":1200,
"format":"jpg",
"resource_type":"image",
"created_at":"2013-07-31T20:33:21Z",
"bytes":737633,
"type":"upload",
"url":
"http://res.cloudinary.com/demo/image/upload/v1375302801/tquyfignx5bxcbsupr6a.jpg",
"secure_url":
"https://res.cloudinary.com/demo/image/upload/v1375302801/tquyfignx5bxcbsupr6a.jpg",
"etag":"1adf8d2ad3954f6270d69860cb126b24"
}
The response is automatically parsed and converted into a Map.
I'm using the "TheMovieDB" API to get information about movies, and it is possible to retrieve video information for a certain movie, like this:
videos: {
results: [
{
id: "533ec6a5c3a3685448005327",
iso_639_1: "en",
key: "ac7KhViaVqc",
name: "First Trailer",
site: "YouTube",
size: 720,
type: "Trailer"
}
]
}
As you can see, it is possible to build the youtube video url with the key provided in the JSON.
When building the MediaInfo object, you can pass the video URL, like this:
MediaInfo.Builder(MOVIE_URL)
.setStreamType(MediaInfo.STREAM_TYPE_BUFFERED)
.setContentType("video/mp4")
.setMetadata(movieMetadata)
.build();
However, if MOVIE_URL is the youtube url, I can't cast the content.
Is it possible to cast youtube videos from my app? If yes, how can I do it?
Thanks!
There are currently no APIs in the cast SDK to accomplish that. People have had different degrees of luck with using the embedded youtube iframe approach, but that is not a perfect solution for various reasons; for example you cannot skip ads, etc.
hello am trying to get images from an album from picasa in an android app. I tried creating an album and the album was created successfully however there is something wrong when i try to get the images in the album. Please find below my code:
PicasawebService myService = new PicasawebService("myApp");
myService.setUserCredentials("username", "password");
URL url = new URL ("https://picasaweb.google.com/data/feed/api/user/myusername/albumid/myalbumid");
AlbumFeed feed= myService.getFeed(url, AlbumFeed.class);
List<MediaContent> l;
for(PhotoEntry photo : feed.getPhotoEntries()){
l= photo.getMediaContents();
return l.get(0).getUrl().toString();
}
the for loop is not being entered but when i check the size of the feed and it shows me the correct number of images in the album. I got the code from google developers guide:(https://developers.google.com/picasa-web/docs/2.0/developers_guide_java#listalbums)
NB: i tried the same exact code in a desktop app and worked perfectly.
Thank you
EDIT: The problem is that the ALbumFeed is returning entries of class GPhotoEntry and not PhotoEntry. I searched online and the solution was to include the gdata-photos-meta.jar in my library which was already included...Any idea?
google's GData doesnt work with android. You should use google Client api and they say that there is a running sample for picasa on android.