Home facebook graph api: understanding offset_y offset_x API
Reply: 0

facebook graph api: understanding offset_y offset_x API

dgamma3
1#
dgamma3 Published in 2018-02-11 18:24:26Z

Hello I am trying to understand what offset_y means in facebooks graph API https://developers.facebook.com/docs/graph-api/reference/cover-photo/.

y_offset: When greater than 0% but less than 100%, the cover photo overflows vertically. The value represents the vertical manual offset (the amount the user dragged the photo vertically to show the part of interest) as a percentage of the offset necessary to make the photo fit the space.

I have tried using the solution in facebook graph api: offset_y offset_x, but it does work.

for example, this event https://www.facebook.com/events/164312630996898/. The event picture has a css top offset of -3px:

In order to calculate this, I will attempt to use the method in facebook graph api: offset_y offset_x

The image is 500x622px (when resized to fit), the event image space is 500x262px. 622px-262px = 360px. using the facebook graph API (https://developers.facebook.com/tools/explorer?method=GET&path=164312630996898%3Ffields%3Dcover&version=v2.12) gives an offset-y of 9:

so 9% of 360px is, 32.4px, but the actual answer should be 3px.

any help would be greatly appreciated!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.29792 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO