From this question, I know that we can obtain user profile picture in square shape by appending ?type=square in Graph API URL , such as :
https://graph.facebook.com/{FACEBOOK_USER_ID}/picture?type=square
But how about the images in wall post ? I know that I can obtain the picture URLs ( of different dimensions ) by this Graph API call :
https://graph.facebook.com/{OBJECT_ID}/
However, the type parameter does not support square. It supports thumbail, normal and album only. But none of them returns the square image shown in timeline . ( I also need the reposition information, as I used the "Reposition Photo" in Timeline ). Does Graph API provide such information ?
Note: I use PHP , but I think the programming language is independent
No, the Graph API does not provide the data on how the photo is repositioned on a Timeline or Newsfeed.
In the context of the API, "Square" does not refer to any photo size of equal dimensions. But rather it refers to the image used as the user's avatar next to posts. So given this logic, regular photo objects would not include a "square" implementation because that photo will never be used as an avatar. If you want an image of equal dimensions on each side, you'll have to implement that yourself.
Related
I have an R markdown html document with a leaflet map. The base layer for the leaflet map is ESRI.WorldImagery. This base layer doesn't indicate anywhere the date upon which the imagery (e.g. aerial photograph or satellite) was acquired. It's possible that different imagery tiles represent different snap shots in time.
I would like to at least be able to tell my users the date or year in which the imagery they are viewing was acquired. Better yet would be to show an interactive timeline slider, analogous to the historical imagery timeline slider in google earth.
Does anyone know if this is possible in R leaflet?
Programming the GDK a few weeks now, the CardScrollView is a pretty nice interface for displaying cards. However one issue with the UI is showing the user how far along they are in the card stack. In the Mirror API, this is nicely handled by the Slider view at the bottom of the screen as described on the Glass Design page:
https://developers.google.com/glass/design/style/metrics-grids
Unfortunately, I have not been able to get this Slider object to display on the CardScrollView and instead have resorted to a klugey 1 of n text.
Is there any way to get this Slider view to display in the GDK?
This is not yet supported by our API but is currently tracked with Issue #256.
For future reference, this feature has been already implemented as described in the original issue.
You can use the method setHorizontalScrollBarEnabled to show the bar, e.g.
mCardScrollView.setHorizontalScrollBarEnabled(true);
I want to get the cover of an album with an specific height and width, or, in fact, a square thumbnail generated by default in the Facebook Api.
I only get the album ID and its cover ID.
If I use $facebook->api('/'.$cover_id) then the API method returns me only 6 sizes of this image, but I want to get a thumbnail.
This is possible?
Try This may be this help full for you
https://developers.facebook.com/docs/reference/api/photo/
I have added an open graph image to my site but in the news feed it is not scaled correctly. The image is clipped both at the top and at the bottom. The image itself is a png with the size of 1500x1500px.
Looking at my profile page where the image is placed to the left of the text it scales correctly.
I have specified the following meta tags: og:title, og:type, og:image, og:url, and og:description.
I use the ShareThis API for the actual share button (if that can have anything to do with this).
Has anyone had this problem as well?
I'm working on an application, and part of it is making the user create a shapes such as squares or rectangles. I'm wondering if there is a function in wxwidgets that enable the user to do that. What i want to do is the user will click this button then he/she can draw a square or rectangle in his/her desired size. It is like in paint where you can make your own size in your desired size. Is that possible in wxwidgets and codeblocks? maybe some related links or tutorials or anything that will help. thanks !!
You should use this contrib library:
Object Graphics Library
OGL defines an API for applications that need to display objects connected by lines. The objects can be moved around and interacted with. You can find this in contrib/src/ogl, contrib/include/wx/ogl, and contrib/samples/ogl.
This is the link:
http://docs.wxwidgets.org/2.8/wx_utilities.html
Max
Titles sais context here is "drawing", ok.
But in case you are talking about user-created rectangles as means of selecting stuff (or users end up here while searching for that context), jargon for that is rectangles as selection is "marquee selection", and you would look into Wx::Overlay to accomplish that.