17264

How to get large image from facebook graph api for video

Question:

https://graph.facebook.com/v2.7/1505552949567253?fields=source,length,picture.type(large),permalink_url&access_token=bla

But I am getting a very small image, which needs to be enlarged a lot thereby losing a lot of quality, is there a way that i can specify the picture quality as well in the request

Response is like this

{ "source": "https://scontent.xx.fbcdn.net/v/t43.1792-4/22493904_1523143121101563_3196186272225820672_n.mp4?efg=eyJ2ZW5jb2RlX3RhZyI6InN2ZV9oZCJ9&oh=eea85d53fc6e77187d69d6460ad1af3e&oe=5A97C361", "length": 197.737, "picture": "https://scontent.xx.fbcdn.net/v/t15.0-10/s160x160/22642569_1505562656232949_2963030712682283008_n.jpg?oh=c2f2fa4ff4f007971c361bfde644ae24&oe=5B19AF67", "permalink_url": "/InspiredLifePage/videos/1505552949567253/", "id": "1505552949567253" }

The returned image is this small

<a href="https://i.stack.imgur.com/4OCBc.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/4OCBc.png" data-original="https://i.stack.imgur.com/4OCBc.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

Answer1:

Use the thumbnails field and look for the object with is_preferred set to true. picture doesn't respond to modifiers.

Reference: <a href="https://developers.facebook.com/docs/graph-api/reference/video" rel="nofollow">https://developers.facebook.com/docs/graph-api/reference/video</a>

Recommend

  • CSS same height as Parent
  • Sorting by Regex Groups in PHP
  • angularjs resource slash parameters
  • Java&JFreeChart - How to set a JFreeChart's ChartPanel resize with it's container ( sa
  • How to change font size of the scientific notation in matplotlib?
  • Relationship between dpi and figure size
  • Hiding div that contains specific string
  • Simplify looking up nested Json values with Json.NET
  • Correct use of Realloc
  • How to prevent LDM/STM instructions expansion in ARM Compiler 5 armcc inline assembler?
  • What is the ClojureScript analogue of delete from JavaScript?
  • How to Convert Cordova Image Picker Results to Base64 format?
  • How to select sequential duplicates in SQL Server
  • How can i decode an mp3 and encode it as aac with ezstream
  • Fail SonarQube quality gate when coverage decreases
  • How to find problematic thread in Eclipse remote debugger?
  • link library to all targets in cmake project
  • Returning semi-unique values from a list
  • Is in C# List something like vector.reserve(n) in C++
  • Unknown C# type
  • Best Datagrid for Bootstrap/jQuery?
  • ruby/rails: extending or including other modules
  • Implement Gauss-Jordan elimination in Haskell
  • Mod rewrite redirection to another domain if file not exist
  • Redis under Classic ASP(VBScript)
  • SSH in Bash Script Messing Up File Read
  • Plotting Route with Multiple Points in iOS
  • How many Vertica Databases can run on a Host in the same time?
  • How to create virtual printer with iOS Simulator?
  • Distributed JMS based logging .. falling flat?
  • What is this strange character in chrome's resource css viewer?
  • Application bar icon text length
  • Regex for Specific Tag
  • How can we prepend rows to a react native list-view?
  • What's the purpose of QString?
  • How can I enlarge video fullscreen without the affected interface project in as3?
  • Jackson Parser: ignore deserializing for type mismatch
  • Python urlparse: small issue
  • FileReader+canvas image loading problem
  • python draw pie shapes with colour filled