how to show only shared files in google picker popup - google-picker

I am very new to google picker and any google apis.I have integrated google picker api successfully in my project.But I want to show only shared picture in picker popup.Is that possible?

If you mean showing pictures that is owned by someone else and shared to you, you can use
DocsView.setOwnedByMe(boolean | undefined)
From the documentation at Google Picker Reference
Filters the documents based on whether they are owned by the user, or shared with the user.

Related

how google "understand" that i already have been login to google service(like gmail)

I have a case:
It was opened Gmail in one tab of the browser. All good, I can use Gmail(send, receive ...).
I create a simple HTML page from the guide for Google Sign-In, also add an iframe with link to the google data studio file
I open another tab in the same browser and load this simple HTML page. In JS code onload handler of Google SignIn library i do:
gapi.auth2.init({client_id: factory.clientId,scope: 'profile email'});
var authInst = gapi.auth2.getAuthInstance();
var isLoggedIn = authInst.isSignedIn.get();
===> i get false, so library assume that i dont signed in.
But the content of iframe(link to the google data studio file which located in my Google account) is loading and i can see data of the GDS file. So I assume that Google somehow handles my session data on their servers.
How can I align result from gapi.auth2.getAuthInstance() call of the library or which library should i use to understand the REAL state of the user(signed in or not)? How to handle this case in the right way?
Also, due to restrictions, i cant parse the content of the loaded iframe with js iframe.contentDocument property

Outlook Add-In Development - Show event in calendar

I have a CSV File on my File-System with a list of events, and I need to read the events from this File and just show them up in the Outlook calendar along with other appointments, meetings etc, that are actually in outlook.
So I don't won't to Save to the Server or Send any of these events read from file, just use the calender to show them.
Is that possible?
Thanks
No, Outlook w3ill only show the appointments that exist in the given folder.
As Dmitry noticed, the Outlook object model doesn't provide anything for that (i.e. display items that don't exists in the folder).
But you may consider displaying your own form inside Outlook instead of the built-in one for displaying events and appointments from the CSV file and Outlook calendar.
There are sevaral ways to get the job done:
Use adjucent Outlook windows. See Adjacent Windows In Outlook for more information.
Display a home page for the folder. The WebViewURL property of the Folder class allows to set a string indicating the URL of the Web page that is assigned to a folder.
ADX provides the WebViewPane layout which is actually based on the web view technology. But in that case you will be able to use any.Net controls on the form.

creating facebook event and showing on map

I am able to create a facebook event using facebook developer api . But I also need to display the map showing the corresponding location when I view it on facebook. In order to achieve this I passed the latitude/longitude(both as part of venue object and separately) along with the location but it does not seem to work. Can someone please help
Regards
Vivek

Do I need an API key to add a Facebook Like button to website?

I want to show a Like button on some product pages on a website, when a user clicks Like, I want to show the product image along with the link on their wall. Can this be done without an API key?
YOu dont need a API key to add FB like to your website, just copy the iframe code and past it into your HTML.
Check this out for your info:
http://developers.facebook.com/docs/reference/plugins/like/
You can not publish to a users wall without permission to do so. And to get this permission you need an API that the user authorizes.
Also I don't think that a user wants a wall post when simply clicking on 'like'. It will appear on his wall anyway as 'xy likes this'.
I'm a Platform Engineer, you can choose the image and text that gets displayed in the news feed when the user clicks the like button by using Open Graph tags in addition to the like button.
https://developers.facebook.com/docs/opengraph/
I hope this helps!
J

How to post a Google Calendar in a web page without using <iframe>?

Google Calendar provides a way to insert your Google Calendar into a web page using an <iframe>. Is there a way to insert this data into a web page without having to use the <iframe>?
I know that there are ways to do this using the Google API, but is there any way that I can put that code directly into my page without the need to use the <iframe> or rewrite the entire source code and call the Google API?
Actually you can just make it an object and it will validate. For the Google calendar in particular, all you have to do is change "iframe" to "object" (don't for get to change the iframe break too), change "src" to "data", and remove the frameborder and scrolling tags and all is good. The only drawback is that objects are not supported in IE....
I'd say you'd get what you want with restylegc.
You can check the strategy the developer used and insert into your page.
It basically uses curl to get the entire webapp and rewrites links dynamically so that it's in the middle of some request.
This also allows you to restyle the calendar and add custom javascript.

Resources