Google Maps Info Cards With Events? - google-maps-api-3

I am currently working on a project for new homes throughout neighborhoods in Indiana. I'm using Google Fusion tables to populate the map on my site.
We want to be able to force users to sign in after they click the "builder site" link on the info card (the pop up from the google location marker). Is there a way to add events to the google info cards?

You can't do this with stock Fusion Tables info windows because we scrub any JavaScript in them. You can code this up yourself if you want; see this question for an example.
A cleaner way might be to process all the links on your own HTTP server, showing the login page if necessary or redirecting to the builder site if not. That would work with no custom client code, but would require the appropriate server-side setup.

Related

Firebase Dynamic links Analytics not shown?

I am exploring the dynamic links in firebase. My requirement is I will have an sms in my cell phone, which will have a short link and upon click of this link I will open a web page (later we might integrate this with a page in the app)
So I created fire base account and setup an app using my personal gmail account.
Am using their post api with the right api key to generate short urls. (getting warning about the phishing issues which I am ignoring for the time being)
Upon clicking the urls (short link/preview link) I can go to the appropriate URL I have configured.
now I am trying to see the analytics around this dynamic url but dont know why I cannot see anything.
I am checking Grow -->DynamicLink--> Selected My app and I expect the dynamic link generated in above steps to appear here but I cannot see anything.
I am going to analytics -->Events it is asking me to add an app to see the analytics which is not the case for now as I am just hitting the url on the browser directly.
Please let me know if I am doing the right thing?
One of the main use cases (as mentioned in firebase docs) of the firebase dynamic links is web to app conversion and your app must contain the firebase SDK. Once the user comes to the app through the dynamic link, firebase SDK fires the appropriate events. These events can be tracked from analytics -> Events.
But your use case is different you are creating dynamic links for the SMS and after clicking user comes to the website and there is no firebase SDK installed in your website hence no analytics (although firebase will measure some events like click, etc) on the analytics -> Events.
If you want to see the analytics, you will need to create a dynamic link in the firebase console manually or use the dynamic link analytics api.
In short, API created dynamic links can only be tracked if firebase SDK is installed in your app and after that, you need to add that app to firebase analytics -> events section. According to your use case, my suggestion would be to either create dynamic links from console manually or use the dynamic link analytics api

Chart from Power BI from a user in an IFrame

I am creating a webpage that will display charts from a Power BI dashboard.
Upon entering the website the user must log in with their Office 365 account, so that I can access their dashboard and display their charts on my webpage.
Any leads on how I can put a specific chart in an iframe?
Example:
http://blogs.msdn.com/b/powerbi/archive/2014/02/28/the-oscars-with-power-bi.aspx
Update: Since I originally answered this question, much has changed.
In application embedding: if you're building a secure web site and want to embed content from a user's Power BI account, you can use our tile and report embedding capabilities. At the link you'll find documentation and samples to get you started.
Public anonymous embedding: if you're a blogger, journalist, or organization looking to embed reports publicly to share data or tell a story using data, you can use the Power BI Publish to web feature. It allows you to take a report from your Power BI account and with a few clicks publish it so anyone on the internet can view and access it.
As always if you're looking for a new feature head over to our ideas site so we can let you know when we've completed items you've asked for.

Console PHP app posting to timelines

Objective
We're developing a PHP console app that will be a running as a daemon using the PEAR System_Daemon class. The script is ideally a timed loop, that executes indefinitely until terminated.
What this loop does is query a database of players of our FB game on timed intervals, and then make posts using certain criteria to their Facebook walls/timelines.
Our app will be hosted on our Facebook page, which will also contain some albums, photos and videos that we are using to feature on these posts.
Posting on Walls/Timelines
My question is, whether we would be able to use the Facebook PHP SDK to, from within our console application, running as a service, share these albums from our console app, as posts on the users timeline, without having need for confirmation from the FB user in any way, providing we have acquired the appropriate extended permissions of course.
Appearance Sharing vs Uploading
Will the appearance for sharing an album, or video appear the same, on the users timeline as if they posted it themselves, or will the post simply appear as a thumbnail with text next to it.
I've noticed that Facebook nowadays posts photos in a neat collage with more than one thumbnail, and this is the effect that we want to achieve. Also, if not mistaken, I believe that videos added to your wall post also shows inline, as a nice large video, instead as a thumbnail.
Would we rather have to upload these images to a Facebook users account, and if so, is it possible to create new Albums on a users FB account, using the PHP SDK, and the required extended permissions granted? Or can we achieve the same look and feel by simply sharing?
Hosting media externally
Can we add photo's to users profiles, hosted externally perhaps, that will allow the PHP script to post them to an album on their account without needing to upload?
We are trying to avoid uploads, as this will have a performance impact on the server side application.
Providing you request the correct permissions, you can upload photos to the user's account using the Graph API quite easily. To post multiple photos you will have to make multiple API calls. If you post to the wall, the photos will be added to the "Wall Photos" album.
The Graph API does allow you to create albums on the user's behalf, and lets you upload photos straight to the album too. This will create photo stories on the wall like the image you posted in your question.
What you can do, however, is host the files externally. Facebook will always load the images from their server so you have to upload them to facebook. If you want to host the photos externally, you must post the images to the user's wall / timeline as links, but these won't appear under the user's Photos or under Albums.
Hope this answers all your questions. Documentation for uploading photos and creating albums can be found on the Facebook developer website.

How can I create an embedded Google Calendar widget that is logged in as a specified user?

I want to use Google Calendar's embed capabilities on a site but I want it to be viewed as if logged in by a specific user (we are using Google Apps for Business). I already know that a proxy service of some sort will have to be created but I'm not sure as to the steps that would be involved. Can someone point me in the right direction?
Assuming your users are already logged into Google (whether a normal Google account or a Google Apps account), you should just be able to use the Google-provided widget.
For a single calendar, you can use Google's tutorial here. To get a normal view of every calendar that the user has access to (eg. the same things that the person sees at calendar.google.com) you should use the embed generator here. This is an iGoogle widget, but Google allows you to style it and embed it on any site. The widget will automatically know who the user is, assuming they are logged in to Google.

Using Facebook Connect for User Data in Drupal

I have a Drupal site where I want to allow users to add their current Facebook Events that they themselves have created into a custom database. I'm not looking to use Facebook Connect as a User Management system, just trying to get someone's info after they accept.
More specifically I'm looking for a way to access a user's Facebook events info from a Drupal Page using PHP. I want them to be able to hit a button and give me access to their events.
Did you take a look at http://drupal.org/project/fb and http://www.drupalforfacebook.org/ ?
The FB module works pretty well, is mostly sane to use, and the author is responsive to bug reports.

Resources