Using PowerBI tiles in another application - powerbi

having obtained a list of dashboards and then the tiles associated with those dashboards , the links that I get back do not seem to work I am left with a spinning indicator when I try to view in the browser IE or Edge.
url format https://app.powerbi.com/embed?dashboardId=< some UUID>&tileId=< some UUID>
has this worked for others..

If you get an infinite spinning wheel, it's usually because you did not provide authentication credentials needed to load the tile. Each tile you render needs to be rendered on behalf of a specific user and pass their user credentials. Your page needs to obtain and pass an access token to the iFrame after you instantiate the iFrame (i.e. setting src='foo' is not enough). You need to follow that with a post message containing an access token for the user wishing to view the tile.
You can read our blog post (see Integrating tiles into Applications) here: http://blogs.msdn.com/b/powerbidev/archive/2015/09/23/power-bi-api-updates-roundup.aspx
We have a sample that shows how to do it as well:
https://github.com/PowerBI/Integrate-a-tile-into-an-app
Let me know if you still can't get it to work after following all the steps.

Related

I can't get Zoom API Key

I'm trying to get Zoom API Key. So I tried to go to the marketplace.zoom.us page, but I get a blank page. It seems that this problem exists in certain countries, including the Arab countries. I tried several browsers but the same problem, it shows me a blank page. This problem seems new. Because before, I was able to access this page and get the Zoom API Key. Did you try to access this page from an Arab country, and did you face the same problem?
The page appears on mobile, but the mobile version does not provide access to the Zoom API Key.
I need to get Zoom API Key in order to link my website to Zoom. But I can't access the marketplace.zoom.us page. Is there another way to get Zoom API Key?
It works fine , try creating a new zoom account and then create a jwt app.
Or try using VPN instead.
https://github.com/MalikHamzaJaved/ZoomClient
you can only use my zoomapi client , complete api integrated in .net standard

Add video to timeline from GDK or Add "Share" to live card

I'm using the GDK with XE16
I would like to save a video using MediaRecorder and then put it on the Timeline so I can let the user share the video to Gplus, YouTube or any contact. I am providing some additional information during the recording process as an overlay on the video preview.
I am able to save the videos into the /mnt/sdcard/Movies path. I am invoking the Intent.ACTION_MEDIA_SCANNER_SCAN_FILE to add the recorded video to the media database.
I have not been able to figure out how to add a share intent to on livecard. The previous API supported static cards, but those did not support video attachments; and the API is no longer available. I have also tried to use AccountManager and the com.google account in Glass to get an ouath token for the Mirror api to write direction via oauth2:https://www.googleapis.com/auth/glass.timeline. The authorization request shows up, but it is impossible for the user to accept the request.
I've considered sending the video file back to a proxy server that will then call mirror, but this seems like a big round trip for nothing.
I suppose I could send the credentials through this proxy, but this seems like a security nightmare.
The difference between Static Cards and a Timeline Item were large enough that the team, apparently, removed Static Cards until they could make the two of them work much more similarly. What you're trying to do is a commonly requested, and it does make sense that both should work mostly the same way.
You're on the right track for how to handle this at the moment - use the Mirror API to get it into the timeline as a Timeline Item. As you've noticed, you can't go through the auth flow since the user is unable to authenticate through Glass directly.
While you're testing, you can code in an auth token and a refresh token to be provided to the library to do this. For production through MyGlass, take a look at the auth flow that is available at https://developers.google.com/glass/develop/gdk/authentication

Access to page timeline with depreciated offline_access

I develop flash websites that feature posts from a Facebook page. Since I'm not accessing a visitor's account, I don't want them to go through the oauth process. I only want one feed in Json form, but that feed is a page and not a specific user. I've gotten around this by writing a script that I visit to grant an offline_access token. I use that token to access the one feed I need. On page load, I use the graph API Json URL to get the feed and parse the data in flash.
Now that offline_access is going away, I'm trying to find the best way to access the feed in raw json form that will work in flash.
I have read this page (http://developers.facebook.com/roadmap/offline-access-removal/), and can't find a scenario that helps me as all flows require a user to access an app of some kind. Does this change mean that I can no longer access a page feed without the process being transparent to the visitor? If need be I can be asked to be an admin of the pages I need access to, if that helps.
That document outlines all your options -
If acting as the page itself you can get a token which won't expire - Scenario 5 in the document
If acting on behalf as a user you need them to come back at least every 60 days – Scenario 2 or 3 in the document

HTML5 Canvas to Facebook

I've made a basic HTML5/JS comic creation tool that uses the canvas element.
I want users to be able to upload their comics via the Facebook API.
I don't believe Facebook allows posting images in the form of base64 strings from the canvas.toDataURI() method, and don't want to use my own server to convert these images & temporarily store them.
What's the best way to go about this? Possibilities I've wondered about: Convert canvas to blob? Store blob via web service (if so, suggestions?) Upload blob directly to Facebook? (Is that possible?)
I don’t see why this should not be possible doing a „normal” upload. You can create a new photo for a user by posting to PROFILE_ID/photos, with a source parameter of type multipart/form-data.
So first thing I’d try is getting the picture info from the canvas object into a „normal” form (writing it into a input element in the right format(?)), and sending that to Facebook. If this step succeeds, I’d see if jQuery or some other lib’s form.serialize method can build requests of type multipart/form-data. If that’s also possible, then there should be no further problem in taking the data in that format and posting it using FB.api (although you might want to tell your users to be patient, because that might take a while).
Can’t tell for sure if this’ll work, but I’d give it a try.
Facebook partners with Heroku for free app hosting, you can use it as the temporary server.

Facebook like button - how to prevent activity stream from getting into the user's wall?

Can someone please help me out as to how I can completely prevent the user's activity stream from posting back into their wall after they liked a linked? Because, I really find that to be annoying. Afterall, mine is an application that needs to be integrated into an image gallery viewer serving more than 7.5K photos each with its own like button.
If this seems impossible, is there a way to specifically set an image as thumbnail, description, etc as is with the cases of feed and send buttons?
Because, my application is purely dynamic in nature built out of 100% Javascript where more than 80% of its contents are generated by using Ajax calls under a static single URL.
As a result, the like button activity stream always end up pulling the wrong image and descriptions than desired(but this is not so for feed and send buttons),
Thank you
No, you won't have control over not sending items to peoples activity feeds when they click like, unless your domain gets blocked for spam. You would need to create a dynamic url or hashbang url for each independent image and when those images are requested the page hosting it would need to have the proper open graph meta tags sets for thumbnail image, description, etc. Then for each like button in the gallery, you would need to set the href property to this url.