Embed Google Earth gadget into secure Facebook application - facebook

I am trying to embed the google earth gadget into a secure Facebook application, but I am having some trouble with the google gadgets URL's not being secure,
<script src="//www.gmodules.com/ig/ifr?url=http://dl.google.com/developers/maps/embedkmlgadget.xml&up_kml_url=&up_view_mode=earth&up_earth_2d_fallback=1&up_earth_fly_from_space=1&up_earth_show_nav_controls=1&up_earth_show_buildings=1&up_earth_show_terrain=1&up_earth_show_roads=1&up_earth_show_borders=1&up_earth_sphere=earth&up_maps_zoom_out=1&up_maps_default_type=hybrid&synd=open&w=500&h=400&title=Test&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
it refuses to load the gadget in a https environment, as it should, but now I can't seem to find any way of generating secure script tags for the gadget, I have googled my butt off and also searched through SO, but I can't find anything helpful, any idea on how I can get this gadget to display in my Facebook app?

If you're stuck serving a gadget, then this answer won't help. If you can turn your gadget into a served web page instead of a gadget, then there's a simple answer. The google javascript file that includes Google Earth changes from:
http://www.google.com/jsapi
to
https://www.google.com/jsapi
and you're off and running.

Related

Facebook Page Plugin Just Not Working

I am trying to implement the facebook page plugin into my website but it is just not working it just shows some simple text with my webpage name like a normal anchor link but nothing else. it also say file://connect.facebook.net/en_GB/sdk.js is not found in developer tools but when I punch in that address into the web browser it does find the link. Please help this is driving me up the wall
Apparently the facebook page plugin doesn't work the same as the twitter plugin. With twitter you can test your site locally and if you are connected to the internet the plugin will still pull through the data not so with the facebook plugin. How I managed to get it to work was by uploading my file onto my live server and it worked. I have no idea why this happens. Thanks for your help Dani

Google Analytics incised of Facebook

i wanna put the google analytics inside of Facebook.
I use the static HTML and the FBML , and i put the code of Google Analytics in the page (the javascript). However i can't get any results in google analytics.
Can someone tell how can i resolve that issue ?
That is probably impossible. Facebook should provide their own analytics.
Reason, you can't have it is because facebook probably eliminates Javascript form the content you post for security reasons.
Start here:
https://www.facebook.com/help/336893449723054/

Looking for a way to display Google Adsense in IPhone application

My client has saved lot of Google Adsense javascripts in his db and displaying in his website.
Now he wants to display those javascripts ads in his IPhone application.
Is there a way to do it?
Since Google Adsense is mainly for websites I think the better way might be to implement a mobile version of your website. I am not sure how it is going to look as most of the adsense JavaScript is configured to be displayed on a website and not on mobile website.

Barebones Facebook Connection with flashbuilder 4.5 (mobile app)

I am looking for a barebones facebook connection from pure actionscript to use in a mobile. Does anyone know of any examples. Been having a hard time finding what I want in Google
Thanks!
You cant connect to facebook with only actionscript - flash does not implement OAuth which you need to get a valid access token.
You have to either get an access token through PHP, or Javascript.
If you are making a mobile web-app you can check out
http://blog.yoz.sk/2010/04/facebook-now-with-oauth-and-open-graph/
Jozef Chúťka put together a great walkthrough and classes for AS3 and facebook.
So you can make a web app or use a web view in AIR to handle your authentication.

how to track traffic source for a Facebook iframe application

I have a facebook iframe application - let's call it apps.facebook.com/my-app.
We currently use Google Analytics for our tracking, and I correctly have Google Analytics installed on my application (that is included via iframe to the FB app) & it is tracking any use of the application mentioned above.
However, I would like to find out what the traffic source is to my-app PRIOR to facebook; ie, if a user goes to domain1.com, and follows a link from there to apps.facebook.com/my-app, it appears that the "traffic source" gets tracked as "apps.facebook.com" rather than "domain1.com", b/c the GA is installed within my code of the page included via the iframe, so its http referer is apps.facebook.com
Is there any way to retrieve "domain1.com" as my traffic source, in this case? Or any suggestions to try? (whether using Google Analytics, or another source? I see that the facebook insights does give some information on referrers, but it's not very extensive at all; no date ranges, etc)
Thanks so much!
- ali
Just using Google Analytics in Facebook, there isn't much you can do here. However, what we've done in the past (to general success) is to create a redirect link outside of Facebook with the analytics on it, and push all traffic there first.
In other words, create a page at www.myapp.com/redirect, and put the google tracker there (or, alternately, just append the referrer url to the query string manually). Then, redirect with javascript out to the Facebook canvas app URL. That way, the user ends up in the right place, and you get your referrer info as well.